def reseed(self):
# this will only work if app has permission to modify seed.db, for example NOT IOS.
# PS) hopefully it's obvious that this will only effect new games based off of new seed.db.
# all_tmx_files_to_db will just update seed.db if it exists, but for now, just wipe the slate clean to be sure
if exists('seed.db'):
print('deleting seed.db, existing...')
os.remove('seed.db')
all_tmx_files_to_db()
Notification(message='Reseed complete!').open()
评论列表
文章目录