summaryrefslogtreecommitdiff
path: root/pokemontools/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'pokemontools/config.py')
-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,