From 03ff0e692312187e749e17608fe539b99637d138 Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Fri, 29 Dec 2023 14:14:19 +0000 Subject: [PATCH] Fix rideboard --- src/lindbergh/hook.c | 2 +- src/lindbergh/lindbergh.c | 2 +- src/lindbergh/patch.c | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lindbergh/hook.c b/src/lindbergh/hook.c index 2ba3580..d6588cb 100755 --- a/src/lindbergh/hook.c +++ b/src/lindbergh/hook.c @@ -183,7 +183,7 @@ void __attribute__((constructor)) hook_init() securityBoardSetDipResolution(getConfig()->width, getConfig()->height); - printf("Now starting %s", getGameName()); + printf("Now starting \"%s\"", getGameName()); if (getConfig()->gameStatus == WORKING) { printf((", this game is working.\n")); diff --git a/src/lindbergh/lindbergh.c b/src/lindbergh/lindbergh.c index a2445ed..013857b 100644 --- a/src/lindbergh/lindbergh.c +++ b/src/lindbergh/lindbergh.c @@ -8,7 +8,7 @@ #define PRELOAD_FILE_NAME "lindbergh.so" // List of all lindbergh executables known, not including the test executables -char *games[] = {"segaboot", "amiM.elf", "abc", "hod4M.elf", "lgj_final", "vt3", "id4.elf", "id5.elf", "lgjsp_app", "gsevo", "vf5", "apacheM.elf", "END"}; +char *games[] = {"Jennifer", "segaboot", "amiM.elf", "abc", "hod4M.elf", "lgj_final", "vt3", "id4.elf", "id5.elf", "lgjsp_app", "gsevo", "vf5", "apacheM.elf", "END"}; /** * Tests if the game uses a seperate elf for test mode diff --git a/src/lindbergh/patch.c b/src/lindbergh/patch.c index 5498de1..572ffd5 100644 --- a/src/lindbergh/patch.c +++ b/src/lindbergh/patch.c @@ -32,7 +32,7 @@ static void patchMemory(uint32_t address, char *value) { size_t size = strlen((void *)value); - printf("Size=%d\n", size); + // printf("Size=%d\n", size); if (size % 2 != 0) { printf("Patch value should be even.\n"); @@ -433,9 +433,6 @@ int initPatch() setVariable(0x083cef1a, cpu_vendor.edx); setVariable(0x083cef25, cpu_vendor.ecx); } - // Workaroud - if (remove("/var/tmp/atr_init") == 1) - printf("atr_init deleted.\n"); } break; case THE_HOUSE_OF_THE_DEAD_4_SPECIAL_TEST: