mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-24 07:07:10 -05:00
create maps directory if necessary
original-commit-id: 7114385997599104c259c378c656273b2486a54b
This commit is contained in:
parent
aaf40541b1
commit
3bdade3a7f
|
|
@ -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
Block a user