Skip to content
Snippets Groups Projects
Commit 5b1dac20 authored by DarkGod's avatar DarkGod
Browse files

bump to 112

parent 341e7b7d
No related branches found
No related tags found
No related merge requests found
......@@ -403,7 +403,7 @@ end
--- Loads a world
function _M:loadWorld()
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadWorld()) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadWorld()) end
local path = fs.getRealPath(self.save_dir..self:nameLoadWorld())
if not path or path == "" then return nil, "no savefile" end
......@@ -434,7 +434,7 @@ end
--- Loads a world
function _M:loadWorldSize()
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadWorld()) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadWorld()) end
local path = fs.getRealPath(self.save_dir..self:nameLoadWorld())
if not path or path == "" then return nil, "no savefile" end
......@@ -453,7 +453,7 @@ end
--- Loads a game
function _M:loadGame()
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
local path = fs.getRealPath(self.save_dir..self:nameLoadGame())
if not path or path == "" then return nil, "no savefile" end
......@@ -487,7 +487,7 @@ end
--- Loads a game
function _M:loadGameSize()
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
local path = fs.getRealPath(self.save_dir..self:nameLoadGame())
if not path or path == "" then return nil, "no savefile" end
......@@ -506,7 +506,7 @@ end
--- Loads a zone
function _M:loadZone(zone)
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadZone(zone)) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadZone(zone)) end
local path = fs.getRealPath(self.save_dir..self:nameLoadZone(zone))
if not path or path == "" then return false end
......@@ -545,7 +545,7 @@ end
--- Loads a level
function _M:loadLevel(zone, level)
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadLevel(zone, level)) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadLevel(zone, level)) end
local path = fs.getRealPath(self.save_dir..self:nameLoadLevel(zone, level))
if not path or path == "" then return false end
......@@ -582,7 +582,7 @@ end
--- Loads an entity
function _M:loadEntity(name)
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadEntity(name)) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadEntity(name)) end
local path = fs.getRealPath(self.save_dir..self:nameLoadEntity(name))
if not path or path == "" then return false end
......@@ -636,7 +636,7 @@ end
--- Checks for existence
function _M:check()
if core.steam then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
if core.steam and core.steam.isCloudEnabled(true) and core.steam.isCloudEnabled(false) and not savefile_pipe.disable_cloud_saves then core.steam.readFile(self.save_dir..self:nameLoadGame()) end
return fs.exists(self.save_dir..self:nameLoadGame())
end
......
......@@ -87,6 +87,12 @@ function _M:steamCleanup()
core.steam.setFileNamespace(oldns)
end
--- Disables/enables clean saves
-- @param v true or false
function _M:ignoreCloudSave(v)
self.disable_cloud_saves = v
end
--- Push a savefile request
-- @param savename the name of the savefile to handle
-- @param type the Savefile method to use. I.e: "game", "level", "zone". This will cann the Savefile:saveGame, Savefile:saveLevel, Savefile:saveZone methods
......
......@@ -22,8 +22,8 @@ long_name = "Tales of Maj'Eyal: Age of Ascendancy"
short_name = "tome"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://te4.org/"
version = {1,1,1}
engine = {1,1,1,"te4"}
version = {1,1,2}
engine = {1,1,2,"te4"}
description = [[
Welcome to Maj'Eyal.
......
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