From: twinaphex Date: Sat, 25 May 2013 21:11:31 +0000 (+0200) Subject: Pass correct type for RETRO_ENVIRONMENT_SET_MESSAGE X-Git-Tag: r20~69 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=69823a60b04945462d035403d688a9ebf9019b7d Pass correct type for RETRO_ENVIRONMENT_SET_MESSAGE --- diff --git a/frontend/libretro.c b/frontend/libretro.c index 024ea7a5..62f968a8 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -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;