aboutsummaryrefslogtreecommitdiff
path: root/backends/saves/default
AgeCommit message (Collapse)Author
2019-08-11COMMON: Implement FSNode::createDirectoryRecursive()Cameron Cawley
2019-08-11BACKENDS: Create the default save directory if it doesn't existCameron Cawley
2019-07-30CLOUD: Fix saves syncingAlexander Tkachev
This mostly affects OneDrive saves syncing, because it is the only cloud provider to return 0 as timestamp of (non-)created file. 0 is treated as EOF in /saves/timestamps file, thus all timestamps after such 0 timestamps were ignored and files were reuploaded as being "new". This commit also adds more verbose debug information on SavesSyncRequest decisions making for easier debugging.
2019-07-07BACKENDS: Fix crash when save file is owned by another userOrgad Shaneh
fopen() fails, but the null handle was passed on to OutSaveFile.
2019-04-02BACKENDS: Fix compilation with SDL_Net enabled and cloud support disabledCameron Cawley
2016-10-17ALL: Fix compilation with disabled cloud but enabled libcurlEugene Sandulenko
2016-10-09JANITORIAL: Remove more trailing spacesEugene Sandulenko
2016-09-18BACKEND: When removing a save files also remove entry from timestamps fileThierry Crozat
2016-09-18BACKENDS: Ignore timestamps for inexistent files in DefaultSaveFileManagerThierry Crozat
This fixes a bug in the synchronisation of the save files to the cloud when the timestamps file contains entries for files that do no longer exist. In such a case the synchronisation would fail.
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Replace USE_CLOUD with USE_LIBCURLAlexander Tkachev
In most cases that's the right one to check. USE_CLOUD is defined when either USE_LIBCURL or USE_SDL_NET are, which means if there is no curl, USE_CLOUD still could be defined and linking errors would appear.
2016-08-24CLOUD: Fix saves syncAlexander Tkachev
Tested that on actual unix system and found out a few minor bugs related to paths.
2016-08-24CLOUD: Update save's timestamp on rewriteAlexander Tkachev
This commit moves save/load timestamps static methods into DefaultSaveFileManager and fixes a few related bugs.
2016-08-24CLOUD: Make OutSaveFile start saves syncAlexander Tkachev
It had to become a proxy class in order to do that. finalize() starts the saves sync.
2016-08-24CLOUD: Fix DefaultSaveFileManager againAlexander Tkachev
Now openForLoading() and openForSaving() check whether file is locked, so AGOS and SCUMM engines Ctrl+number and Alt+number hot keys shouldn't be able to save/load in these slots during saves sync.
2016-08-24GUI: Show "locked" saves during syncAlexander Tkachev
2016-08-24CLOUD: Make DefaultSaveFileManager ignore syncing filesAlexander Tkachev
MetaEngines don't get "locked" files in the list, so won't try to open these. Save/Load dialog updates save list every time SavesSyncRequest tells it to.
2016-08-24COMMON: Add SaveFileManager::openRawFile()Alexander Tkachev
It's needed for the cloud saves upload/sync feature.
2016-02-28BACKENDS: Remove request to mail Fingolfin.Johannes Schickel
2016-02-25BACKENDS: Make DefaultSaveFileManager case insensitive.Johannes Schickel
For this we introduce a file cache inside DefaultSaveFileManager similar to what we use inside FSDirectory. However, we only do small updates for newly created saves (via openForSaving) or for removed saves (via removeSavefile). Re-caching is done whenever the savepath changes. Tizen changes have not been tested.
2015-09-14SYMBIAN: Rename define and rephrase commentsWillem Jan Palenstijn
2015-09-14SYMBIAN: Fix compilation error caused by remove macroFedor Strizhnev
2014-02-18BACKENDS: Make GPL headers consistent in themselves.Johannes Schickel
2012-06-21COMMON: Allow the savefile manager to create uncompressed savesFilippos Karapetis
These are useful in cases where the files can be used in the original interpreters (such as the exported characters from QFG), in order to avoid confusion in cases where the users are unaware that these saves are compressed and are trying to load them in the original interpreters.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-18COMMON: Rename Error to ErrorCode, introduce new Error classMax Horn
2010-11-29BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefsMax Horn
svn-id: r54573
2010-11-05WINCE: Remove tons of obsolete workaround code for 'missing' headers and funcsMax Horn
svn-id: r54089
2010-03-18Convert some occurences of StringList to StringArray;Max Horn
try to fix compile error in GP2x code svn-id: r48286
2009-07-10Recreate FSNode after calling checkPath since checkPath mayWillem Jan Palenstijn
have created the directory the FSNode points to, invalidating its cached metadata. In the future, it might be nice to add a FSNode::rescan() function for this? This fixes #2793187 . svn-id: r42357
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-02-28Fix annoying warnings in the default savemanagerMax Horn
svn-id: r38976
2009-01-23Renamed FSNode::openForReading / openForWriting to createReadStream / ↵Max Horn
createWriteStream, again to make ownership of the returned stream clear svn-id: r36014
2009-01-22Get rid of the wrappers around the zlib stream wrapper wrappers ;)Max Horn
svn-id: r36007
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-21Since we don't have FSNode::lookupFile() any more, switch to usingTorbjörn Andersson
FSDirectory::listMatchingMembers() instead. I hope the new code behaves close enough to the old one. svn-id: r35143
2008-11-06Merged SFMError into Common::Error, added some new error codes; revised some ↵Max Horn
error handling in DefaultSaveManager svn-id: r34915
2008-11-03* turned DefaultSaveFileManager::checkPath into a virtual methodMax Horn
* add a subclass of DefaultSaveFileManager for UNIX, POSIXSaveFileManager, which overloads checkPath * switched SDL backend to use POSIXSaveFileManager if UNIX is #defined svn-id: r34872
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-07Remove SYMBIAN special handing from default handler.Lars Persson
svn-id: r34403
2008-09-03Some cleanup by peresMax Horn
svn-id: r34308
2008-09-03Moved FilesystemNode / FSList to namespace Common; also got rid of some ↵Max Horn
'typedef Common::String String;' name aliases svn-id: r34302
2008-09-02Added missing include.Johannes Schickel
svn-id: r34275
2008-08-04Pushed some port specific code from DefaultSaveFileManager out to port ↵Max Horn
specific code in backends/platform/ svn-id: r33621
2008-08-04Modified DefaultSaveFileManager::checkPath to perform at least basic checks ↵Max Horn
on non-UNIX, non-Symbian systems svn-id: r33615
2008-08-04Moved ConfMan.registerDefault calls for savepath to DefaultSaveFileManager ↵Max Horn
(eventually, should be pushed into backends/platform/ code) svn-id: r33614
2008-08-04DefaultSaveFileManager: Killed class StdioSaveFile, used ↵Max Horn
FilesystemNode::openForReading()/openForWriting() instead (may cause regressions, watch out) svn-id: r33608
2008-08-04Removed join_paths from default save manager, and use FSNode API instead ↵Max Horn
(may lead to regressions, watch out) svn-id: r33605
2008-07-07Don't let listSavefiles() search subdirectories. Files with the same name ↵Sven Hesse
(in different directories) would cause duplicate entries for the same file. svn-id: r32938
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664