mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
Get rid of useless additional extra function
This commit is contained in:
parent
c7d4e63b83
commit
d146fed5c3
16
retroarch.c
16
retroarch.c
@ -1625,15 +1625,6 @@ static void main_clear_state_extern_global(void)
|
|||||||
memset(&g_extern, 0, sizeof(g_extern));
|
memset(&g_extern, 0, sizeof(g_extern));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void main_clear_state_extern(void)
|
|
||||||
{
|
|
||||||
rarch_main_command(RARCH_CMD_HISTORY_DEINIT);
|
|
||||||
rarch_main_command(RARCH_CMD_LOG_FILE_DEINIT);
|
|
||||||
main_clear_state_extern_global();
|
|
||||||
memset(&g_runloop, 0, sizeof(g_runloop));
|
|
||||||
memset(&g_data_runloop, 0, sizeof(g_data_runloop));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* main_clear_state:
|
* main_clear_state:
|
||||||
* @inited : Init the drivers after teardown?
|
* @inited : Init the drivers after teardown?
|
||||||
@ -1651,8 +1642,13 @@ static void main_clear_state(bool inited)
|
|||||||
|
|
||||||
if (inited)
|
if (inited)
|
||||||
rarch_main_command(RARCH_CMD_DRIVERS_DEINIT);
|
rarch_main_command(RARCH_CMD_DRIVERS_DEINIT);
|
||||||
|
rarch_main_command(RARCH_CMD_HISTORY_DEINIT);
|
||||||
|
rarch_main_command(RARCH_CMD_LOG_FILE_DEINIT);
|
||||||
|
|
||||||
main_clear_state_extern();
|
main_clear_state_extern_global();
|
||||||
|
|
||||||
|
memset(&g_runloop, 0, sizeof(g_runloop));
|
||||||
|
memset(&g_data_runloop, 0, sizeof(g_data_runloop));
|
||||||
|
|
||||||
if (inited)
|
if (inited)
|
||||||
rarch_main_command(RARCH_CMD_DRIVERS_INIT);
|
rarch_main_command(RARCH_CMD_DRIVERS_INIT);
|
||||||
|
Loading…
Reference in New Issue
Block a user