From 4d8d8e896e7d68e52d65d1b8be479a7a79735e29 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 21 Oct 2015 20:24:06 +0300 Subject: [PATCH] Ignore picassoivromfile if it does not point to a file. --- gfxboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfxboard.cpp b/gfxboard.cpp index 4407460d..63bf6cd8 100644 --- a/gfxboard.cpp +++ b/gfxboard.cpp @@ -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) -- 2.47.3