mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Cleanup
This commit is contained in:
parent
7ea0a19a4f
commit
1d3d07ad7d
10
retroarch.c
10
retroarch.c
@ -1373,7 +1373,6 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
|||||||
static bool rarch_error_on_init = false;
|
static bool rarch_error_on_init = false;
|
||||||
static bool rarch_block_config_read = false;
|
static bool rarch_block_config_read = false;
|
||||||
static bool rarch_force_fullscreen = false;
|
static bool rarch_force_fullscreen = false;
|
||||||
global_t *global = global_get_ptr();
|
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
switch(state)
|
switch(state)
|
||||||
@ -1468,8 +1467,13 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
|||||||
retroarch_set_paths_redirect();
|
retroarch_set_paths_redirect();
|
||||||
break;
|
break;
|
||||||
case RARCH_CTL_SET_SRAM_ENABLE:
|
case RARCH_CTL_SET_SRAM_ENABLE:
|
||||||
global->sram.use = rarch_ctl(RARCH_CTL_IS_PLAIN_CORE, NULL)
|
{
|
||||||
&& !content_does_not_need_content();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
|
if (global)
|
||||||
|
global->sram.use = rarch_ctl(RARCH_CTL_IS_PLAIN_CORE, NULL)
|
||||||
|
&& !content_does_not_need_content();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case RARCH_CTL_SET_ERROR_ON_INIT:
|
case RARCH_CTL_SET_ERROR_ON_INIT:
|
||||||
rarch_error_on_init = true;
|
rarch_error_on_init = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user