You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
create maps directory if necessary
This commit is contained in:
@@ -2987,6 +2987,8 @@ class MapBlockData:
|
|||||||
def save_to_file(self):
|
def save_to_file(self):
|
||||||
#check if the file exists already
|
#check if the file exists already
|
||||||
map_path = self.map_path
|
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):
|
if not os.path.exists(map_path):
|
||||||
#dump to file
|
#dump to file
|
||||||
#bytes = rom_interval(self.address, self.width.byte*self.height.byte, strings=True)
|
#bytes = rom_interval(self.address, self.width.byte*self.height.byte, strings=True)
|
||||||
|
Reference in New Issue
Block a user