]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Ignore picassoivromfile if it does not point to a file.
authorToni Wilen <twilen@winuae.net>
Wed, 21 Oct 2015 17:24:06 +0000 (20:24 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 21 Oct 2015 17:24:06 +0000 (20:24 +0300)
gfxboard.cpp

index 4407460dcfcfb25804a5dc5ebdacb051c6d523e2..63bf6cd85653123de8da74088d92afb2d92da7a3 100644 (file)
@@ -2229,7 +2229,7 @@ addrbank *gfxboard_init_memory (int devnum)
 
                p4rom = read_device_rom(&currprefs, ROMTYPE_PICASSOIV, 0, roms);
 
-               if (!p4rom && currprefs.picassoivromfile[0])
+               if (!p4rom && currprefs.picassoivromfile[0] && zfile_exists(currprefs.picassoivromfile))
                        p4rom = read_rom_name(currprefs.picassoivromfile);
 
                if (!p4rom && rl)