Will now append the date and time in the Pretense savefile, mitigating risks of missions script errors when trying to load a savefile from a previously generated mission.

This commit is contained in:
MetalStormGhost
2023-12-09 12:24:06 +02:00
parent 3d435c7821
commit 3d8956434c
2 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
local savefile = 'pretense_1.1.json'
if lfs then
if lfs then
local dir = lfs.writedir()..'Missions/Saves/'
lfs.mkdir(dir)
savefile = dir..savefile