mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Move code to libretro_version_1.c
This commit is contained in:
parent
1e044f38ad
commit
2c3cb61ca8
@ -601,8 +601,6 @@ static bool event_init_core(void)
|
|||||||
if (!event_init_content())
|
if (!event_init_content())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
core.poll_type = settings->input.poll_type_behavior;
|
|
||||||
|
|
||||||
if (!core_ctl(CORE_CTL_INIT, NULL))
|
if (!core_ctl(CORE_CTL_INIT, NULL))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -260,13 +260,17 @@ bool core_ctl(enum core_ctl_state state, void *data)
|
|||||||
retro_set_rewind_callbacks();
|
retro_set_rewind_callbacks();
|
||||||
break;
|
break;
|
||||||
case CORE_CTL_INIT:
|
case CORE_CTL_INIT:
|
||||||
if (!core_ctl(CORE_CTL_VERIFY_API_VERSION, NULL))
|
{
|
||||||
return false;
|
settings_t *settings = config_get_ptr();
|
||||||
if (!retro_init_libretro_cbs(&retro_ctx))
|
core.poll_type = settings->input.poll_type_behavior;
|
||||||
return false;
|
if (!core_ctl(CORE_CTL_VERIFY_API_VERSION, NULL))
|
||||||
core_ctl(CORE_CTL_RETRO_GET_SYSTEM_AV_INFO,
|
return false;
|
||||||
video_viewport_get_system_av_info());
|
if (!retro_init_libretro_cbs(&retro_ctx))
|
||||||
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
|
return false;
|
||||||
|
core_ctl(CORE_CTL_RETRO_GET_SYSTEM_AV_INFO,
|
||||||
|
video_viewport_get_system_av_info());
|
||||||
|
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CORE_CTL_DEINIT:
|
case CORE_CTL_DEINIT:
|
||||||
return retro_uninit_libretro_cbs(&retro_ctx);
|
return retro_uninit_libretro_cbs(&retro_ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user