shithub: pokecrystal

Download patch

ref: 7114385997599104c259c378c656273b2486a54b
parent: a3dc6079899d2cfd9d8563a421f8c3ce626caceb
author: Bryan Bishop <kanzure@gmail.com>
date: Thu Apr 19 18:16:33 EDT 2012

create maps directory if necessary

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -2987,6 +2987,8 @@
     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)
--