mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Decompile mpconfigs segment
This commit is contained in:
1 parent
0ba7d1fb76
commit
15ee3c168e
18 files changed
+3635
-2174
No files matched your search
@@ -28,6 +28,7 @@ def main():
|
||||
write_binary(fd, 0x39850, get_gamedata())
|
||||
write_binary(fd, 0x4e850, get_inflate())
|
||||
write_binary(fd, 0x4fc40, get_gamezips())
|
||||
write_binary(fd, 0x7d0a40, get_mpconfigs())
|
||||
write_binary(fd, 0x7f2388, get_fonts())
|
||||
write_binary(fd, 0x80a250, get_sfxctl())
|
||||
write_binary(fd, 0x839dd0, get_sfxtbl())
|
||||
@@ -81,6 +82,9 @@ def get_gamezips():
|
||||
def get_unknown():
|
||||
return getfrombaserom(0x157120, 0x69b268)
|
||||
|
||||
def get_mpconfigs():
|
||||
return getfilecontents(bdir() + '/ucode/mpconfigs.bin')
|
||||
|
||||
def get_fonts():
|
||||
return getfrombaserom(0x7f2388, 0x17ec8)
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class Extractor:
|
||||
self.extract_gamedata()
|
||||
self.extract_textures()
|
||||
self.extract_ucodes()
|
||||
self.extract_mpconfigs()
|
||||
|
||||
#
|
||||
# Audio
|
||||
@@ -128,6 +129,14 @@ class Extractor:
|
||||
nullpos = self.rom[address:].index(0)
|
||||
return str(self.rom[address:address + nullpos], 'utf-8')
|
||||
|
||||
#
|
||||
# MpConfigs
|
||||
#
|
||||
|
||||
def extract_mpconfigs(self):
|
||||
addr = self.val('mpconfigs')
|
||||
self.write('ucode/mpconfigs.bin', self.rom[addr:addr+0x68*44])
|
||||
|
||||
#
|
||||
# Fonts
|
||||
#
|
||||
@@ -225,6 +234,7 @@ class Extractor:
|
||||
'game': 0x4fc40,
|
||||
'files': 0x28080,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7d0a40,
|
||||
'sfxctl': 0x80a250,
|
||||
'textures': 0x01d65f40,
|
||||
},
|
||||
@@ -232,6 +242,7 @@ class Extractor:
|
||||
'game': 0x4fc40,
|
||||
'files': 0x28080,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7d0a40,
|
||||
'sfxctl': 0x80a250,
|
||||
'textures': 0x01d65f40,
|
||||
},
|
||||
@@ -239,6 +250,7 @@ class Extractor:
|
||||
'game': 0x43c40,
|
||||
'files': 0x29160,
|
||||
'gamedata': 0x30850,
|
||||
'mpconfigs': 0x785130,
|
||||
'sfxctl': 0x7be940,
|
||||
'textures': 0x01d12fe0,
|
||||
},
|
||||
@@ -246,6 +258,7 @@ class Extractor:
|
||||
'game': 0x4fc40,
|
||||
'files': 0x28910,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7bc240,
|
||||
'sfxctl': 0x7f87e0,
|
||||
'textures': 0x01d5ca20,
|
||||
},
|
||||
@@ -253,6 +266,7 @@ class Extractor:
|
||||
'game': 0x4fc40,
|
||||
'files': 0x29b90,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7bc240,
|
||||
'sfxctl': 0x7f87e0,
|
||||
'textures': 0x01d5bb50,
|
||||
},
|
||||
@@ -260,6 +274,7 @@ class Extractor:
|
||||
'game': 0x4fc40,
|
||||
'files': 0x28800,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7c00d0,
|
||||
'sfxctl': 0x7fc670,
|
||||
'textures': 0x01d61f90,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user