Skip to content

Commit

Permalink
add back invalid asm dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredNayla committed Jul 25, 2024
1 parent fbc9ced commit 886041d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ def patch(self):
# Preprocess ASM code: add commas between instructions if missing
asm_lines = preprocess_asm_code(asmRaw)

#try:
gscode_lines = injector_lib.asm_to_gameshark(memory_address_start, asm_lines)
self.output.delete("1.0", tk.END)
self.output.insert(tk.END, '\n'.join(gscode_lines))
#except Exception as e:
# createDialog("Error", "error", "Invalid ASM code.")
# return
try:
gscode_lines = injector_lib.asm_to_gameshark(memory_address_start, asm_lines)
self.output.delete("1.0", tk.END)
self.output.insert(tk.END, '\n'.join(gscode_lines))
except Exception as e:
createDialog("Error", "error", "Invalid ASM code.")
return

def preprocess_asm_code(asmRaw):
# Split by lines
Expand Down

0 comments on commit 886041d

Please sign in to comment.