From 405fc80a12e4236ec5df48eb5c3dc69093890d30 Mon Sep 17 00:00:00 2001 From: Aldo Vargas Date: Thu, 21 Nov 2024 08:35:40 -0400 Subject: [PATCH] webMAN MOD 1.47.47h - Fixed compilation errors when PS3MAPI flag is commented out - Fixed missing ; Thanks to @korn3r for the report in issue #1140 --- _Projects_/prepISO/source/main.c | 2 +- include/cmd/nobd.h | 2 ++ include/mount/mount.h | 2 +- include/ps3mapi/debug_mem.h | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_Projects_/prepISO/source/main.c b/_Projects_/prepISO/source/main.c index e858cb2d..a5f38711 100644 --- a/_Projects_/prepISO/source/main.c +++ b/_Projects_/prepISO/source/main.c @@ -162,7 +162,7 @@ int main(int argc, const char* argv[]) sysFsChmod(path, S_IFDIR | 0777); g_mmcm = 0; - g_remove_ext = !g_mmcm + g_remove_ext = !g_mmcm; if(argc > 0 && argv) { diff --git a/include/cmd/nobd.h b/include/cmd/nobd.h index 42973f4e..c40d345d 100644 --- a/include/cmd/nobd.h +++ b/include/cmd/nobd.h @@ -25,8 +25,10 @@ _concat2(&sbuffer, "noBD: ", noBD ? STR_ENABLED : STR_DISABLED); + #if defined(DEBUG_MEM) || defined(PS3MAPI) sprintf(param, "/peek.lv1?712790"); ps3mapi_find_peek_poke_hexview(pbuffer, templn, param); + #endif } else _concat2(&sbuffer, "noBD: ", STR_ERROR); diff --git a/include/mount/mount.h b/include/mount/mount.h index 123eadb5..1c359561 100644 --- a/include/mount/mount.h +++ b/include/mount/mount.h @@ -1833,7 +1833,7 @@ static void mount_thread(u64 action) #ifdef COBRA_NON_LITE if(!ret) - patch_gameboot(0); // None + {patch_gameboot(0);} // None #endif // #ifdef COBRA_ONLY #ifdef VIRTUAL_PAD diff --git a/include/ps3mapi/debug_mem.h b/include/ps3mapi/debug_mem.h index 0f164e17..0237744e 100644 --- a/include/ps3mapi/debug_mem.h +++ b/include/ps3mapi/debug_mem.h @@ -188,7 +188,7 @@ static void ps3mapi_mem_dump(char *buffer, char *html, char *param) sprintf(html, " [" HTML_URL2 "]", "/delete.ps3", dump_file, STR_DELETE); strcat(buffer, html); } } -#endif +#endif //#ifdef DEBUG_MEM #define HEXVIEW_SIZE 0x200 @@ -479,4 +479,4 @@ static void ps3mapi_find_peek_poke_hexview(char *buffer, char *templn, char *par add_html(dat_DEBUG_MEM_KEYS, 0, buffer, html); } -#endif // #ifdef DEBUG_MEM +#endif // #if defined(DEBUG_MEM) || defined(PS3MAPI)