mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Inject globals file into ROM
This commit is contained in:
1 parent
1b552e8ab6
commit
01fb7c3ccc
2 files changed
+4
-2
No files matched your search
@@ -180,7 +180,7 @@ testall:
|
|||||||
|
|
||||||
all: setup lang globals
|
all: setup lang globals
|
||||||
|
|
||||||
rom: $(B_SETUP_BINZ_FILES)
|
rom: $(B_SETUP_BINZ_FILES) $(B_DIR)/Uglobals
|
||||||
tools/inject pd.$(ROMID).z64
|
tools/inject pd.$(ROMID).z64
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
+3
-1
@@ -34,7 +34,9 @@ class Injector:
|
|||||||
self.rompart3 = rombuffer[0x001a15c0:0x00ed83a0]
|
self.rompart3 = rombuffer[0x001a15c0:0x00ed83a0]
|
||||||
self.rompart4 = rombuffer[0x01d5ca00:]
|
self.rompart4 = rombuffer[0x01d5ca00:]
|
||||||
|
|
||||||
globals = self.rareunzip(rombuffer[0x39850:])
|
fp = open('build/ntsc-final/Uglobals', 'rb')
|
||||||
|
globals = fp.read()
|
||||||
|
fp.close()
|
||||||
|
|
||||||
self.globaltop = globals[0:0x28080]
|
self.globaltop = globals[0:0x28080]
|
||||||
self.globalbot = globals[0x2a000:]
|
self.globalbot = globals[0x2a000:]
|
||||||
|
|||||||
Reference in new issue
Block a user