Add system message warning if a BIOS file could not be found
authortwinaphex <autechre1024@hotmail.com>
Sat, 25 May 2013 21:00:18 +0000 (23:00 +0200)
committernotaz <notasas@gmail.com>
Sun, 26 May 2013 16:03:57 +0000 (19:03 +0300)
frontend/libretro.c

index 16feeec..024ea7a 100644 (file)
@@ -842,7 +842,11 @@ void retro_init(void)
                fclose(f);
        }
        else
+   {
                SysPrintf("no BIOS files found.\n");
+      const char *str = "no BIOS found, expect bugs!";
+      environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, (void*)&str);
+   }
 
        level = 1;
        environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);