some config defaults taken from vba stuff

This commit is contained in:
Bryan Bishop
2013-09-09 00:27:26 -05:00
parent fa966f7a3f
commit e88a4767e9

View File

@@ -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,