summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-22 01:28:06 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-22 01:28:06 -0500
commita3bab14b2657582675b2a94c99e55ae3148e93eb (patch)
tree6f868cbd69820388a6a47cbb6cb2a0474be3a644
parentbf20b9982b19535044a7d40848bd46a04731694e (diff)
weird, why was there no shutdown command?
-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.