From 898efe4d4946eb02d40c0660007bde6db9caf0bb Mon Sep 17 00:00:00 2001 From: JoshuaMKW <60854312+JoshuaMKW@users.noreply.github.com> Date: Mon, 24 Aug 2020 05:13:09 -0500 Subject: [PATCH] Removed debug print, hotfix as well --- kernel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel.py b/kernel.py index ab73e09..3c23dde 100644 --- a/kernel.py +++ b/kernel.py @@ -589,7 +589,7 @@ def determine_codehook(dolFile: DolFile, codeHandler: CodeHandler, hook=False): return True -def assert_code_hook(dolFile: DolFile, codeHandler: CodeHandler, hook=False): +def assert_code_hook(dolFile: DolFile, codeHandler: CodeHandler): for _, address, size, _, in dolFile.textSections: dolFile.seek(address, 0) sample = dolFile.read(size) @@ -622,7 +622,6 @@ def assert_code_hook(dolFile: DolFile, codeHandler: CodeHandler, hook=False): else: continue - print(f'{dolFile._currLogicAddr:X}, {address:X}, {result:X}') sample = tools.read_uint32(dolFile) while sample != 0x4E800020: sample = tools.read_uint32(dolFile) @@ -630,7 +629,6 @@ def assert_code_hook(dolFile: DolFile, codeHandler: CodeHandler, hook=False): dolFile.seek(-4, 1) codeHandler.hookAddress = dolFile.tell() - if hook: insert_code_hook(dolFile, codeHandler, codeHandler.hookAddress) return True return False