* Avoid crash when enabling mode 5 without enough layers (they are created)
* Display error code to terminal when loading an image fails. Mainly for debugging purposes. * Use different error codes for different errors in ILBM loader. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1818 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -624,7 +624,7 @@ void Load_image(T_IO_Context *context)
|
||||
|
||||
if (File_error>0)
|
||||
{
|
||||
fprintf(stderr,"Unable to load file %s!\n",context->File_name);
|
||||
fprintf(stderr,"Unable to load file %s (error %d)!\n",context->File_name, File_error);
|
||||
if (context->Type!=CONTEXT_SURFACE)
|
||||
Error(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user