mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Create HAS_SET_SUBSYSTEMS for rarch_ctl
This commit is contained in:
parent
096a420e7b
commit
1e45692f0b
@ -87,6 +87,7 @@ struct retro_core_t
|
|||||||
bool symbols_inited;
|
bool symbols_inited;
|
||||||
bool game_loaded;
|
bool game_loaded;
|
||||||
bool input_polled;
|
bool input_polled;
|
||||||
|
bool has_set_subsystems;
|
||||||
bool has_set_input_descriptors;
|
bool has_set_input_descriptors;
|
||||||
uint64_t serialization_quirks_v;
|
uint64_t serialization_quirks_v;
|
||||||
};
|
};
|
||||||
|
@ -7678,6 +7678,7 @@ static void global_free(void)
|
|||||||
runloop_remaps_content_dir_active = false;
|
runloop_remaps_content_dir_active = false;
|
||||||
|
|
||||||
current_core.has_set_input_descriptors = false;
|
current_core.has_set_input_descriptors = false;
|
||||||
|
current_core.has_set_subsystems = false;
|
||||||
|
|
||||||
global = &g_extern;
|
global = &g_extern;
|
||||||
path_clear_all();
|
path_clear_all();
|
||||||
@ -9763,6 +9764,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
|
|||||||
memcpy(system->subsystem.data, info,
|
memcpy(system->subsystem.data, info,
|
||||||
i * sizeof(*system->subsystem.data));
|
i * sizeof(*system->subsystem.data));
|
||||||
system->subsystem.size = i;
|
system->subsystem.size = i;
|
||||||
|
current_core.has_set_subsystems = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -24474,6 +24476,7 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
|
|||||||
/* Flush out some states that could have been set
|
/* Flush out some states that could have been set
|
||||||
* by core environment variables. */
|
* by core environment variables. */
|
||||||
current_core.has_set_input_descriptors = false;
|
current_core.has_set_input_descriptors = false;
|
||||||
|
current_core.has_set_subsystems = false;
|
||||||
|
|
||||||
/* Load the config file now that we know what it is */
|
/* Load the config file now that we know what it is */
|
||||||
if (!rarch_block_config_read)
|
if (!rarch_block_config_read)
|
||||||
@ -25598,6 +25601,8 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
|||||||
{
|
{
|
||||||
switch(state)
|
switch(state)
|
||||||
{
|
{
|
||||||
|
case RARCH_CTL_HAS_SET_SUBSYSTEMS:
|
||||||
|
return (current_core.has_set_subsystems);
|
||||||
case RARCH_CTL_CORE_IS_RUNNING:
|
case RARCH_CTL_CORE_IS_RUNNING:
|
||||||
return runloop_core_running;
|
return runloop_core_running;
|
||||||
case RARCH_CTL_BSV_MOVIE_IS_INITED:
|
case RARCH_CTL_BSV_MOVIE_IS_INITED:
|
||||||
|
@ -113,6 +113,8 @@ enum rarch_ctl_state
|
|||||||
/* Username */
|
/* Username */
|
||||||
RARCH_CTL_HAS_SET_USERNAME,
|
RARCH_CTL_HAS_SET_USERNAME,
|
||||||
|
|
||||||
|
RARCH_CTL_HAS_SET_SUBSYSTEMS,
|
||||||
|
|
||||||
RARCH_CTL_TASK_INIT,
|
RARCH_CTL_TASK_INIT,
|
||||||
|
|
||||||
RARCH_CTL_SET_FRAME_TIME_LAST,
|
RARCH_CTL_SET_FRAME_TIME_LAST,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user