Rename config_init to rarch_config_init to avoid collision

with cores that might use this symbol name
This commit is contained in:
twinaphex 2019-05-09 06:56:48 +02:00
parent 8c17f12f97
commit 5a9c0da282
3 changed files with 3 additions and 7 deletions

View File

@ -640,13 +640,9 @@ void config_free(void)
configuration_settings = NULL;
}
bool config_init(void)
void rarch_config_init(void)
{
configuration_settings = (settings_t*)calloc(1, sizeof(settings_t));
if (!configuration_settings)
return false;
return true;
}
/**

View File

@ -785,7 +785,7 @@ bool config_save_overrides(int override_type);
* properly. */
bool config_replace(bool config_save_on_exit, char *path);
bool config_init(void);
void rarch_config_init(void);
bool config_overlay_enable_default(void);

View File

@ -2247,7 +2247,7 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
libretro_free_system_info(&runloop_system.info);
command_event(CMD_EVENT_HISTORY_DEINIT, NULL);
config_init();
rarch_config_init();
driver_ctl(RARCH_DRIVER_CTL_DEINIT, NULL);
rarch_ctl(RARCH_CTL_STATE_FREE, NULL);