mirror of https://github.com/pret/pokecrystal.git
create maps directory if necessary
This commit is contained in:
parent
a3dc607989
commit
7114385997
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue