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:
parent
947e5a3d72
commit
449168aa08
@ -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;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
class LoaderIMGFile
|
||||
{
|
||||
public:
|
||||
uint32_t offset;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
char name[24];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user