(PS3) Use ssnes_main_clear_state()

This commit is contained in:
TwinAphex51224 2012-01-21 18:00:07 +01:00
parent 3695cf78b9
commit d55c86bc41
2 changed files with 4 additions and 4 deletions

View File

@ -487,7 +487,6 @@ static void ingame_menu(void)
ps3_unblock_swap(); ps3_unblock_swap();
} }
// Temporary, a more sane implementation should go here.
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
// Initialize 6 SPUs but reserve 1 SPU as a raw SPU for PSGL // Initialize 6 SPUs but reserve 1 SPU as a raw SPU for PSGL
@ -496,9 +495,7 @@ int main(int argc, char *argv[])
cellSysmoduleLoadModule(CELL_SYSMODULE_FS); cellSysmoduleLoadModule(CELL_SYSMODULE_FS);
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME); cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME);
memset(&g_extern, 0, sizeof(g_extern)); ssnes_main_clear_state();
memset(&g_settings, 0, sizeof(g_settings));
memset(&g_console, 0, sizeof(g_console));
g_console.block_config_read = true; g_console.block_config_read = true;
config_set_defaults(); config_set_defaults();

View File

@ -2058,6 +2058,9 @@ void ssnes_main_clear_state(void)
{ {
memset(&g_settings, 0, sizeof(g_settings)); memset(&g_settings, 0, sizeof(g_settings));
memset(&g_extern, 0, sizeof(g_extern)); memset(&g_extern, 0, sizeof(g_extern));
#ifdef SSNES_CONSOLE
memset(&g_console, 0, sizeof(g_console));
#endif
init_state(); init_state();
} }