summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-09 00:27:26 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-09 00:27:26 -0500
commite88a4767e97796c2b78fda3ecd2c43b187aac059 (patch)
tree150789143beccc8c9abf2eef40ac0d1977c5e059
parentfa966f7a3ff7daafeb78a71adc795aa7bcccb992 (diff)
some config defaults taken from vba stuff
-rw-r--r--pokemontools/config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pokemontools/config.py b/pokemontools/config.py
index 656fab0..cbf230c 100644
--- a/pokemontools/config.py
+++ b/pokemontools/config.py
@@ -31,6 +31,14 @@ class Config(object):
if "path" not in self._config:
self._config["path"] = os.getcwd()
+ # vba save states go into ./save-states/
+ if "save_state_path" not in self._config:
+ self._config["save_state_path"] = os.path.join(self._config["path"], "save-states/")
+
+ # assume rom is at ./baserom.gbc
+ if "rom" not in self._config:
+ self._config["rom_path"] = os.path.join(self._config["path"], "baserom.gbc")
+
def __getattr__(self, key):
"""
Grab the value from the class properties, then check the configuration,