summaryrefslogtreecommitdiff
path: root/pokemontools/wram.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-12-18 18:22:42 -0800
committerBryan Bishop <kanzure@gmail.com>2013-12-18 18:22:42 -0800
commitf0aaf3cd568c485af40690ce0f18a6cd456ed02e (patch)
tree44c5466fc998a132a358e319a01cd7c3dca954ed /pokemontools/wram.py
parentd8f4e687ebc49d4b135f0d8b7f10a643114a0d8a (diff)
parenta07c92d3b38898568077da99ec05a82c69ffcc3c (diff)
Merge pull request #61 from kanzure/path-finding
Some basic path finding stuff
Diffstat (limited to 'pokemontools/wram.py')
-rw-r--r--pokemontools/wram.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/pokemontools/wram.py b/pokemontools/wram.py
index dbff309..a132289 100644
--- a/pokemontools/wram.py
+++ b/pokemontools/wram.py
@@ -133,9 +133,21 @@ class WRAMProcessor(object):
self.config = config
self.paths = {}
- self.paths["wram"] = os.path.join(self.config.path, "wram.asm")
- self.paths["hram"] = os.path.join(self.config.path, "hram.asm")
- self.paths["gbhw"] = os.path.join(self.config.path, "gbhw.asm")
+
+ if hasattr(self.config, "wram"):
+ self.paths["wram"] = self.config.wram
+ else:
+ self.paths["wram"] = os.path.join(self.config.path, "wram.asm")
+
+ if hasattr(self.config, "hram"):
+ self.paths["hram"] = self.config.hram
+ else:
+ self.paths["hram"] = os.path.join(self.config.path, "hram.asm")
+
+ if hasattr(self.config, "gbhw"):
+ self.paths["gbhw"] = self.config.gbhw
+ else:
+ self.paths["gbhw"] = os.path.join(self.config.path, "gbhw.asm")
def initialize(self):
"""