From 45350b8b717e818db30595afa556344961fa25ed Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Tue, 3 Apr 2012 15:49:52 +0000 Subject: [PATCH] -fixed bug which tried to launch a dml game from sd card even if the copy process failed because of not enough space on it (resulted in black screen then) --- source/menu/menu_wbfs.cpp | 51 ++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/source/menu/menu_wbfs.cpp b/source/menu/menu_wbfs.cpp index 2ddb9db9..fcc78281 100644 --- a/source/menu/menu_wbfs.cpp +++ b/source/menu/menu_wbfs.cpp @@ -225,32 +225,22 @@ int CMenu::_GCcopyGame(void *obj) memset(folder, 0, sizeof(folder)); snprintf(folder, sizeof(folder), DML_DIR, DeviceName[SD]); snprintf(target, sizeof(target), "%s/%s", folder, m.m_cf.getHdr()->path); - int ret; - if(fsop_GetFreeSpaceKb((char*)"sd:/")path); + if(fsop_GetFreeSpaceKb((char*)"sd:/")