summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/script_extractor.py8
-rw-r--r--tools/tcgdisasm.py21
2 files changed, 15 insertions, 14 deletions
diff --git a/tools/script_extractor.py b/tools/script_extractor.py
index 812678c..d8ebc06 100644
--- a/tools/script_extractor.py
+++ b/tools/script_extractor.py
@@ -230,9 +230,9 @@ def createList(): # this is a func just so all this can go at the bottom
("Func_d1b3", "", DO_NOT_QUIT),
("ScriptCommand_QuitScriptFully", "", QUIT_SPECIAL),
("Func_d244", "q", DO_NOT_QUIT),
- ("Func_d24c", "q", DO_NOT_QUIT),
+ ("ScriptCommand_ShowMultichoiceTextbox_ChooseDeckToDuelAgainst", "q", DO_NOT_QUIT),
("ScriptCommand_OpenDeckMachine", "b", DO_NOT_QUIT),
- ("Func_d271", "q", DO_NOT_QUIT),
+ ("ScriptCommand_ShowMultichoiceTextbox_ChooseStarterDeck", "q", DO_NOT_QUIT),
("ScriptCommand_EnterMap", "bbood", DO_NOT_QUIT),
("ScriptCommand_MoveArbitraryNPC", "bm", DO_NOT_QUIT),
("Func_d209", "", DO_NOT_QUIT),
@@ -255,8 +255,8 @@ def createList(): # this is a func just so all this can go at the bottom
("ScriptCommand_WaitForSongToFinish", "q", DO_NOT_QUIT),
("Func_d435", "b", DO_NOT_QUIT),
("ScriptCommand_AskQuestionJumpDefaultYes", "tj", DO_NOT_QUIT),
- ("Func_d2f6", "q", DO_NOT_QUIT),
- ("Func_d317", "", DO_NOT_QUIT),
+ ("ScriptCommand_ShowSamNormalMultichoice", "q", DO_NOT_QUIT),
+ ("ScriptCommand_ShowSamTutorialMultichoice", "", DO_NOT_QUIT),
("Func_d43d", "", DO_NOT_QUIT),
("ScriptCommand_EndScriptLoop2", "q", QUIT_CONTINUE_CODE),
("ScriptCommand_EndScriptLoop3", "q", QUIT_CONTINUE_CODE),
diff --git a/tools/tcgdisasm.py b/tools/tcgdisasm.py
index 579d577..a887b1e 100644
--- a/tools/tcgdisasm.py
+++ b/tools/tcgdisasm.py
@@ -763,16 +763,17 @@ class Disassembler(object):
# handle the special flag macros
found_flag_macro = False
- for flag_macro in flag_macros:
- if flag_macro[0] == target_offset:
- found_flag_macro = True
- current_flag_macro = flag_macro
- event_flag = "EVENT_FLAG_" + format(opcode_arg_3, "02X")
- opcode_output_str = flag_macro[1].format(event_flag)
-
- # we need to skip a byte since this macro takes one extra
- opcode_nargs+=1
- break
+ if opcode_byte == 0xcd:
+ for flag_macro in flag_macros:
+ if flag_macro[0] == target_offset:
+ found_flag_macro = True
+ current_flag_macro = flag_macro
+ event_flag = "EVENT_FLAG_" + format(opcode_arg_3, "02X")
+ opcode_output_str = flag_macro[1].format(event_flag)
+
+ # we need to skip a byte since this macro takes one extra
+ opcode_nargs+=1
+ break
if not found_flag_macro and opcode_byte in call_commands + absolute_jumps: