Pass correct type for RETRO_ENVIRONMENT_SET_MESSAGE
authortwinaphex <autechre1024@hotmail.com>
Sat, 25 May 2013 21:11:31 +0000 (23:11 +0200)
committernotaz <notasas@gmail.com>
Sun, 26 May 2013 16:03:57 +0000 (19:03 +0300)
frontend/libretro.c

index 024ea7a..62f968a 100644 (file)
@@ -844,8 +844,12 @@ void retro_init(void)
        else
    {
                SysPrintf("no BIOS files found.\n");
-      const char *str = "no BIOS found, expect bugs!";
-      environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, (void*)&str);
+      struct retro_message msg = 
+      {
+         "no BIOS found, expect bugs!",
+         180
+      };
+      environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, (void*)&msg);
    }
 
        level = 1;