1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Random LoaderIMG fixes

This commit is contained in:
Timmy Sjöstedt 2013-07-01 05:38:12 +02:00
parent 947e5a3d72
commit 449168aa08
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ LoaderIMG::LoaderIMG()
bool LoaderIMG::load(const std::string& filename)
{
std::string dirName = filename;
std::string dirName = filename;
dirName.append(".dir");
FILE* fp = fopen(dirName.c_str(), "rb");
@ -61,7 +61,7 @@ char* LoaderIMG::loadToMemory(const std::string& assetname)
if(!found)
{
printf("No such asset found.\n");
std::cerr << "Asset '" << assetname << "' not found!" << std::endl;
return 0;
}

View File

@ -9,7 +9,7 @@
class LoaderIMGFile
{
public:
uint32_t offset;
uint32_t offset;
uint32_t size;
char name[24];
};