From 9828d53fd66497ad955f73ebf8844bb9159c9c49 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 24 Mar 2016 23:38:05 -0700 Subject: [PATCH] fix a few commands in the MM text dumper --- dumptext2.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dumptext2.py b/dumptext2.py index 75e964f..db011af 100644 --- a/dumptext2.py +++ b/dumptext2.py @@ -10,7 +10,7 @@ lament = lambda *args, **kwargs: print(*args, file=sys.stderr, **kwargs) unpack = lambda fmt, data: struct.unpack(fmt, bytes(data)) -extended='°ÀÁÂÄÇÈÉÊËÌÍÎÏÑÒÓÔÖÙÚÛÜßàáâäçèéêëìíîïñòóôöùúûü¡¿ͣ' +extended='°ÀÁÂÄÇÈÉÊËÌÍÎÏÑÒÓÔÖÙÚÛÜßàáâäçèéêëìíîïñòóôöùúûü¡ª¿' def parse_jp_text(f): s = '' @@ -68,7 +68,7 @@ def parse_jp_text(f): else: bs += b' '*int(arg2(), 16) elif x == 0x0100: - bs += '[あ?]'.encode('shift-jis') + bs += b'[Link]' elif x == 0x0101: if verbose: bs += b'[instant on]' @@ -117,7 +117,7 @@ def parse_jp_text(f): elif x == 0x0204: bs += b'[postman timer]' elif x == 0x0208: - bs += b'[result time?]' + bs += b'[deku score?]' elif x == 0x020B: bs += b'[highscore? 020B]' elif x == 0x020C: @@ -187,13 +187,13 @@ def parse_jp_text(f): if verbose: bs += b'[no skip?]' elif x == 0x0306: - bs += b'[highscore? 0306]' + bs += b'[octorok archery highscore]' elif x == 0x0307: - bs += b'[epona highscore]' + bs += b'[epona highscore?]' elif x == 0x0308: bs += b'[highscore? 0308]' elif x == 0x0309: - bs += b'[highscore? 0309]' + bs += b'[epona highscore]' elif x == 0x030A: bs += b'[deku highscore]' elif x == 0x030B: @@ -366,6 +366,8 @@ def parse_en_text(f): elif x == 0x15: if verbose: bs += b'[no skip?]' + elif x == 0x16: + bs += b'[Link]' elif x == 0x17: if verbose: bs += b'[instant on]' @@ -405,8 +407,6 @@ def parse_en_text(f): else: arg() arg() - elif x == 0x16: - bs += b'[Link]' elif x == 0xC2: if verbose: bs += b'[two-choice]'