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:
parent
f8711dbeeb
commit
20e8186be8
1 changed files with 3 additions and 2 deletions
|
@ -35,10 +35,13 @@ void
|
||||||
retro_set_environment(retro_environment_t cb)
|
retro_set_environment(retro_environment_t cb)
|
||||||
{
|
{
|
||||||
static struct retro_log_callback log;
|
static struct retro_log_callback log;
|
||||||
|
bool no_game = true;
|
||||||
|
|
||||||
environ_cb = cb;
|
environ_cb = cb;
|
||||||
if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log))
|
if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log))
|
||||||
log_cb = log.log;
|
log_cb = log.log;
|
||||||
|
|
||||||
|
environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &no_game);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -97,10 +100,8 @@ retro_get_system_av_info(struct retro_system_av_info* info)
|
||||||
void
|
void
|
||||||
retro_init(void)
|
retro_init(void)
|
||||||
{
|
{
|
||||||
bool yes = true;
|
|
||||||
enum retro_pixel_format pixfmt = RETRO_PIXEL_FORMAT_XRGB8888;
|
enum retro_pixel_format pixfmt = RETRO_PIXEL_FORMAT_XRGB8888;
|
||||||
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &pixfmt);
|
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &pixfmt);
|
||||||
environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &yes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue