diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-22 00:44:35 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-22 00:44:35 -0500 |
commit | 6b56969ccf00262187071e95568cee89f637692b (patch) | |
tree | 5f3d8d7e9c70b5e3c59c5c04ff20a3a3e3a32e8d /pokemontools/vba/vba.py | |
parent | c44ab9b5565a46004b17d87fdfefcd515b0adbf9 (diff) |
make vba.crystal accept config
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r-- | pokemontools/vba/vba.py | 7 |
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) |