Skip to content
Snippets Groups Projects
Commit 35d7b34f authored by DarkGod's avatar DarkGod
Browse files

Game will not warn you if you try to load an already tainted savefile in developer mode

parent 22dafb72
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,7 @@ function _M:saveGame(game, no_dialog)
f:write(("short_name = %q\n"):format(self.short_name))
f:write(("timestamp = %d\n"):format(os.time()))
f:write(("loadable = %s\n"):format(game:isLoadable() and "true" or "false"))
f:write(("cheat = %s\n"):format(game:isTainted() and "true" or "false"))
f:write(("description = %q\n"):format(desc.description))
f:close()
if core.steam then core.steam.writeFile(self.save_dir.."desc.lua") end
......
......@@ -162,7 +162,7 @@ end
function _M:playSave()
if not self.save_sel then return end
if config.settings.cheat then
if config.settings.cheat and not self.save_sel.cheat then
Dialog:yesnoPopup("Developer Mode", "#LIGHT_RED#WARNING: #LAST#Loading a savefile while in developer mode will permanently invalidate it. Proceed?", function(ret) if not ret then
Module:instanciate(self.save_sel.mod, self.save_sel.base_name, false)
end end, "Cancel", "Load anyway", true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment