def OpenSave():
global f
# Attempt to Extract the
try:
z = ZipFile(ent_SaveFile.get())
DebugPrint(" + Successfully opened save file archive")
x = z.extract('savedata', os.getcwd(), 'w#qjH_xaZ~Fm')
DebugPrint(" + Successfully extracted save contents")
f = open(x, 'r+b')
DebugPrint(" + Successfully opened save file data")
return 1
except:
f = None
DebugPrint(" + Unable to open save file data")
tkMessageBox.showerror("FireGUI Error", "Unable to open savedata.dat file")
return 0
# Function to close the save file
评论列表
文章目录