summaryrefslogtreecommitdiff
path: root/redtools/extract_maps.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-21 15:32:47 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-21 15:32:47 -0500
commit053520b00331c218e816406c5e147a90011a2fae (patch)
tree17900dafc4587463fd886e6ee195c9672aa0f205 /redtools/extract_maps.py
parent42c7b0348386fdd0d3fc3b64ad81ee8ee7779824 (diff)
parent5f959fa7c82f495971551a91ff8d94d4282da38a (diff)
Merge branch 'master' into vba-automation
Diffstat (limited to 'redtools/extract_maps.py')
-rw-r--r--redtools/extract_maps.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redtools/extract_maps.py b/redtools/extract_maps.py
index bc0a193..d1f6b71 100644
--- a/redtools/extract_maps.py
+++ b/redtools/extract_maps.py
@@ -2,12 +2,13 @@
#date: 2012-01-02
#url: http://hax.iimarck.us/files/rbheaders.txt
import json
+import os
#parse hex values as base 16 (see calculate_pointer)
base = 16
-#where to load the rom from
-rom_filename = "../baserom.gbc"
+# TODO: load the rom based on config.rom_path
+rom_filename = os.path.join(os.getcwd(), "baserom.gbc")
rom = None #load the rom later
#map header pointers start at 0x1AE