libretro: Do SET_CORE_OPTIONS unconditionally

This commit is contained in:
Connor McLaughlin
2020-07-08 12:48:57 +10:00
parent 57cf40d1ae
commit 068b244303
2 changed files with 14 additions and 9 deletions

View File

@ -121,16 +121,12 @@ RETRO_API size_t retro_get_memory_size(unsigned id)
RETRO_API void retro_set_environment(retro_environment_t f)
{
static bool core_options_set = false;
g_retro_environment_callback = f;
if (!core_options_set)
{
core_options_set = true;
g_libretro_host_interface.InitLogging();
if (!g_libretro_host_interface.SetCoreOptions())
Log_WarningPrintf("Failed to set core options, settings will not be changeable.");
}
if (!g_libretro_host_interface.SetCoreOptions())
Log_WarningPrintf("Failed to set core options, settings will not be changeable.");
g_libretro_host_interface.InitLogging();
}
RETRO_API void retro_set_video_refresh(retro_video_refresh_t f)