summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index eccc6a5..4a5ed44 100644
--- a/crystal.py
+++ b/crystal.py
@@ -2987,6 +2987,8 @@ class MapBlockData:
def save_to_file(self):
#check if the file exists already
map_path = self.map_path
+ if not os.path.exists(self.maps_path):
+ os.mkdir(self.maps_path)
if not os.path.exists(map_path):
#dump to file
#bytes = rom_interval(self.address, self.width.byte*self.height.byte, strings=True)