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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py
index 1b33ba7..3c8c084 100644
--- a/pokemontools/vba/vba.py
+++ b/pokemontools/vba/vba.py
@@ -56,6 +56,12 @@ class crystal(object):
if not os.path.exists(self.config.rom_path):
raise Exception("rom_path is not configured properly; edit vba_config.py? " + str(rom_path))
+ def shutdown(self):
+ """
+ Reset the emulator.
+ """
+ self.vba.shutdown()
+
def save_state(self, name, state=None, override=False):
"""
Saves the given state to save_state_path.