mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Decompile firingrange ROM segment
This commit is contained in:
1 parent
74630d5af4
commit
86307c5053
17 files changed
+2010
-60
No files matched your search
@@ -36,6 +36,7 @@ def main():
|
||||
write_binary(fd, 0x7df820, get_mpstrings('F'))
|
||||
write_binary(fd, 0x7e2f20, get_mpstrings('S'))
|
||||
write_binary(fd, 0x7e6620, get_mpstrings('I'))
|
||||
write_binary(fd, 0x7e9d20, get_firingrange())
|
||||
write_binary(fd, 0x7f2388, get_fonts())
|
||||
write_binary(fd, 0x80a250, get_sfxctl())
|
||||
write_binary(fd, 0x839dd0, get_sfxtbl())
|
||||
@@ -95,6 +96,9 @@ def get_mpconfigs():
|
||||
def get_mpstrings(lang):
|
||||
return getfilecontents(bdir() + '/ucode/mpstrings%s.bin' % lang)
|
||||
|
||||
def get_firingrange():
|
||||
return getfilecontents(bdir() + '/ucode/firingrange.bin')
|
||||
|
||||
def get_fonts():
|
||||
return getfrombaserom(0x7f2388, 0x17ec8)
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ class Extractor:
|
||||
self.extract_ucodes()
|
||||
self.extract_mpconfigs()
|
||||
self.extract_mpstrings()
|
||||
self.extract_firingrange()
|
||||
|
||||
#
|
||||
# Audio
|
||||
@@ -151,6 +152,14 @@ class Extractor:
|
||||
addr = self.val('mpconfigs') + 0x68 * 44 + 0x3700 * index
|
||||
self.write('ucode/mpstrings%s.bin' % lang, self.rom[addr:addr+0x3700])
|
||||
|
||||
#
|
||||
# Firing Range
|
||||
#
|
||||
|
||||
def extract_firingrange(self):
|
||||
addr = self.val('firingrange')
|
||||
self.write('ucode/firingrange.bin', self.rom[addr:addr+0x1550])
|
||||
|
||||
#
|
||||
# Fonts
|
||||
#
|
||||
@@ -249,6 +258,7 @@ class Extractor:
|
||||
'files': 0x28080,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7d0a40,
|
||||
'firingrange': 0x7e9d20,
|
||||
'sfxctl': 0x80a250,
|
||||
'textures': 0x01d65f40,
|
||||
},
|
||||
@@ -257,6 +267,7 @@ class Extractor:
|
||||
'files': 0x28080,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7d0a40,
|
||||
'firingrange': 0x7e9d20,
|
||||
'sfxctl': 0x80a250,
|
||||
'textures': 0x01d65f40,
|
||||
},
|
||||
@@ -265,6 +276,7 @@ class Extractor:
|
||||
'files': 0x29160,
|
||||
'gamedata': 0x30850,
|
||||
'mpconfigs': 0x785130,
|
||||
'firingrange': 0x79e410,
|
||||
'sfxctl': 0x7be940,
|
||||
'textures': 0x01d12fe0,
|
||||
},
|
||||
@@ -273,6 +285,7 @@ class Extractor:
|
||||
'files': 0x28910,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7bc240,
|
||||
'firingrange': 0x7d5520,
|
||||
'sfxctl': 0x7f87e0,
|
||||
'textures': 0x01d5ca20,
|
||||
},
|
||||
@@ -281,6 +294,7 @@ class Extractor:
|
||||
'files': 0x29b90,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7bc240,
|
||||
'firingrange': 0x7d5520,
|
||||
'sfxctl': 0x7f87e0,
|
||||
'textures': 0x01d5bb50,
|
||||
},
|
||||
@@ -289,6 +303,7 @@ class Extractor:
|
||||
'files': 0x28800,
|
||||
'gamedata': 0x39850,
|
||||
'mpconfigs': 0x7c00d0,
|
||||
'firingrange': 0x7d93b0,
|
||||
'sfxctl': 0x7fc670,
|
||||
'textures': 0x01d61f90,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user