mirror of
https://github.com/notwa/mm
synced 2025-01-02 17:08:06 -08:00
add and correct more filenames
This commit is contained in:
parent
f09d6a162b
commit
bd8f6b3c28
4 changed files with 3083 additions and 3 deletions
1552
fn M US10.txt
Normal file
1552
fn M US10.txt
Normal file
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@ dmadata
|
||||||
Audiobank
|
Audiobank
|
||||||
Audioseq
|
Audioseq
|
||||||
Audiotable
|
Audiotable
|
||||||
jpn_font_static
|
kanji
|
||||||
link_animetion
|
link_animetion
|
||||||
icon_item_static
|
icon_item_static
|
||||||
icon_item_24_static
|
icon_item_24_static
|
||||||
|
@ -17,7 +17,7 @@ item_name_static
|
||||||
map_name_static
|
map_name_static
|
||||||
do_action_static
|
do_action_static
|
||||||
message_static
|
message_static
|
||||||
jpn_message_data_static
|
message_data_static
|
||||||
message_texture_static
|
message_texture_static
|
||||||
nes_font_static
|
nes_font_static
|
||||||
nes_message_data_static
|
nes_message_data_static
|
||||||
|
|
1510
fn O US12.txt
Normal file
1510
fn O US12.txt
Normal file
File diff suppressed because it is too large
Load diff
20
z64dump.py
20
z64dump.py
|
@ -37,6 +37,8 @@ dma_sig_ique = b"\x00\x00\x00\x00\x00\x00\x10\x50\x00\x00\x00\x00\x00\x00\x00\x0
|
||||||
# hacky
|
# hacky
|
||||||
heresay = os.path.split(sys.argv[0])[0]
|
heresay = os.path.split(sys.argv[0])[0]
|
||||||
oot_filenames_src = os.path.join(heresay, "fn O US10.txt")
|
oot_filenames_src = os.path.join(heresay, "fn O US10.txt")
|
||||||
|
oot_filenames_1_2_src = os.path.join(heresay, "fn O US12.txt")
|
||||||
|
mm_filenames_src = os.path.join(heresay, "fn M US10.txt")
|
||||||
|
|
||||||
oot_gc_debug = (
|
oot_gc_debug = (
|
||||||
'cfecfdc58d650e71a200c81f033de4e6d617a9f6',
|
'cfecfdc58d650e71a200c81f033de4e6d617a9f6',
|
||||||
|
@ -52,11 +54,18 @@ oot_n64_ntsc = (
|
||||||
# NTSC 1.1 (U) and (J)
|
# NTSC 1.1 (U) and (J)
|
||||||
'd3ecb253776cd847a5aa63d859d8c89a2f37b364',
|
'd3ecb253776cd847a5aa63d859d8c89a2f37b364',
|
||||||
'dbfc81f655187dc6fefd93fa6798face770d579d',
|
'dbfc81f655187dc6fefd93fa6798face770d579d',
|
||||||
|
)
|
||||||
|
|
||||||
|
oot_n64_ntsc_1_2 = (
|
||||||
# NTSC 1.2 (U) and (J)
|
# NTSC 1.2 (U) and (J)
|
||||||
'41b3bdc48d98c48529219919015a1af22f5057c2',
|
'41b3bdc48d98c48529219919015a1af22f5057c2',
|
||||||
'fa5f5942b27480d60243c2d52c0e93e26b9e6b86',
|
'fa5f5942b27480d60243c2d52c0e93e26b9e6b86',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mm_n64_u = (
|
||||||
|
'd6133ace5afaa0882cf214cf88daba39e266c078',
|
||||||
|
)
|
||||||
|
|
||||||
def dump_wrap(data, fn, size):
|
def dump_wrap(data, fn, size):
|
||||||
try:
|
try:
|
||||||
kind = detect_format(BytesIO(data), fn)
|
kind = detect_format(BytesIO(data), fn)
|
||||||
|
@ -197,13 +206,22 @@ def dump_rom(fn, decompress=True):
|
||||||
f.seek(0xBE80)
|
f.seek(0xBE80)
|
||||||
names = f.read(0x6490).split(b'\x00')
|
names = f.read(0x6490).split(b'\x00')
|
||||||
names = [str(n, 'utf-8') for n in names if n != b'']
|
names = [str(n, 'utf-8') for n in names if n != b'']
|
||||||
|
elif romhash in mm_n64_u:
|
||||||
|
# filenames inferred from log files
|
||||||
|
with open(mm_filenames_src) as f2:
|
||||||
|
names = f2.readlines()
|
||||||
elif romhash in oot_n64_ntsc:
|
elif romhash in oot_n64_ntsc:
|
||||||
# filenames inferred from debug rom
|
# filenames inferred from debug rom
|
||||||
with open(oot_filenames_src) as f2:
|
with open(oot_filenames_src) as f2:
|
||||||
names = f2.readlines()
|
names = f2.readlines()
|
||||||
names = [n.strip() for n in names]
|
elif romhash in oot_n64_ntsc_1_2:
|
||||||
|
# filenames inferred from debug rom
|
||||||
|
with open(oot_filenames_1_2_src) as f2:
|
||||||
|
names = f2.readlines()
|
||||||
with SubDir(romhash):
|
with SubDir(romhash):
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
if names is not None:
|
||||||
|
names = [n.strip() for n in names]
|
||||||
z_dump(f, names, decompress)
|
z_dump(f, names, decompress)
|
||||||
|
|
||||||
def z_read_file(path, fn=None):
|
def z_read_file(path, fn=None):
|
||||||
|
|
Loading…
Reference in a new issue