From fe0ce2b78b11de6ee50aa38f3107d6f3fbc9d57b Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Mon, 20 Feb 2012 18:16:51 +0100 Subject: [PATCH] (PS3) Better deiniting/freeing up of resources --- ps3/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ps3/main.c b/ps3/main.c index b4ca8eacaa..4bd9eae1bf 100644 --- a/ps3/main.c +++ b/ps3/main.c @@ -286,7 +286,7 @@ static void get_environment_settings(int argc) CellGameContentSize size; char dirName[CELL_GAME_DIRNAME_SIZE]; - SSNES_LOG("Registering callback...\n"); + SSNES_LOG("Registering system utility callback...\n"); cellSysutilRegisterCallback(0, callback_sysutil_exit, NULL); if(path_file_exists(MULTIMAN_EXECUTABLE)) @@ -471,6 +471,14 @@ begin_shutdown: ps3_video_deinit(); } ssnes_main_clear_state(); + + if(g_console.screenshots_enable) + cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_SCREENSHOT); + cellSysmoduleUnloadModule(CELL_SYSMODULE_JPGDEC); + cellSysmoduleUnloadModule(CELL_SYSMODULE_PNGDEC); + cellSysmoduleUnloadModule(CELL_SYSMODULE_AVCONF_EXT); + cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_GAME); + if(g_console.return_to_launcher) { sys_spu_initialize(6, 0);