* 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:
Adrien Destugues
2011-07-12 19:31:48 +00:00
parent e875597964
commit 6672966661
3 changed files with 30 additions and 15 deletions

View File

@@ -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);
}