summaryrefslogtreecommitdiff
path: root/pokemontools/vba/vba.py
diff options
context:
space:
mode:
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r--pokemontools/vba/vba.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py
index 863e16c..d821999 100644
--- a/pokemontools/vba/vba.py
+++ b/pokemontools/vba/vba.py
@@ -41,11 +41,14 @@ class crystal(object):
it's a poorly written shared library.
"""
- def __init__(self):
+ def __init__(self, config=None):
"""
Launch the VBA controller.
"""
- self.config = configuration.Config()
+ if not config:
+ config = configuration.Config()
+
+ self.config = config
self.vba = vba_wrapper.VBA(self.config.rom_path)
self.registers = vba_wrapper.core.registers.Registers(self.vba)