mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Iterate and unset override settings in retroarch_parse_input
This commit is contained in:
parent
39aba8e36f
commit
6fb39e4f7f
2 changed files with 7 additions and 1 deletions
|
@ -627,6 +627,7 @@ enum rarch_content_type retroarch_path_is_media_type(const char *path)
|
||||||
**/
|
**/
|
||||||
static void retroarch_parse_input(int argc, char *argv[])
|
static void retroarch_parse_input(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
unsigned i;
|
||||||
const char *optstring = NULL;
|
const char *optstring = NULL;
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
@ -705,6 +706,10 @@ static void retroarch_parse_input(int argc, char *argv[])
|
||||||
retroarch_set_current_core_type(CORE_TYPE_DUMMY, false);
|
retroarch_set_current_core_type(CORE_TYPE_DUMMY, false);
|
||||||
|
|
||||||
*global->subsystem = '\0';
|
*global->subsystem = '\0';
|
||||||
|
|
||||||
|
for (i = 0; i < RARCH_OVERRIDE_SETTING_LAST; i++)
|
||||||
|
retroarch_override_setting_unset((enum rarch_override_setting)(i));
|
||||||
|
|
||||||
global->has_set.save_path = false;
|
global->has_set.save_path = false;
|
||||||
global->has_set.state_path = false;
|
global->has_set.state_path = false;
|
||||||
global->has_set.libretro = false;
|
global->has_set.libretro = false;
|
||||||
|
|
|
@ -100,7 +100,8 @@ enum rarch_capabilities
|
||||||
|
|
||||||
enum rarch_override_setting
|
enum rarch_override_setting
|
||||||
{
|
{
|
||||||
RARCH_OVERRIDE_SETTING_NONE = 0
|
RARCH_OVERRIDE_SETTING_NONE = 0,
|
||||||
|
RARCH_OVERRIDE_SETTING_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rarch_main_wrap
|
struct rarch_main_wrap
|
||||||
|
|
Loading…
Add table
Reference in a new issue