1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

libretro: Fix no game loading.

This commit is contained in:
宋文武 2024-10-12 22:50:37 +08:00
parent f8711dbeeb
commit 20e8186be8

View file

@ -35,10 +35,13 @@ void
retro_set_environment(retro_environment_t cb)
{
static struct retro_log_callback log;
bool no_game = true;
environ_cb = cb;
if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log))
log_cb = log.log;
environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &no_game);
}
void
@ -97,10 +100,8 @@ retro_get_system_av_info(struct retro_system_av_info* info)
void
retro_init(void)
{
bool yes = true;
enum retro_pixel_format pixfmt = RETRO_PIXEL_FORMAT_XRGB8888;
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &pixfmt);
environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &yes);
}