Willem Jan Palenstijn
1462efb52d
Recreate FSNode after calling checkPath since checkPath may
...
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-07-10 22:29:25 +00:00
Max Horn
fb79b18571
Changed SaveFileManager methods to take Common::String params (instead of char pointers)
...
svn-id: r41000
2009-05-29 14:38:22 +00:00
Max Horn
f38e6b0d76
Fix annoying warnings in the default savemanager
...
svn-id: r38976
2009-02-28 18:07:14 +00:00
Max Horn
8f16458e9b
Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
...
svn-id: r36014
2009-01-23 03:41:36 +00:00
Max Horn
94bfe1aa6f
Get rid of the wrappers around the zlib stream wrapper wrappers ;)
...
svn-id: r36007
2009-01-22 23:14:16 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Torbjörn Andersson
7a04c39fa8
Since we don't have FSNode::lookupFile() any more, switch to using
...
FSDirectory::listMatchingMembers() instead. I hope the new code behaves close
enough to the old one.
svn-id: r35143
2008-11-21 20:02:55 +00:00
Max Horn
4c8f221fb8
Merged SFMError into Common::Error, added some new error codes; revised some error handling in DefaultSaveManager
...
svn-id: r34915
2008-11-06 16:40:00 +00:00
Max Horn
d0c9b0cb23
* turned DefaultSaveFileManager::checkPath into a virtual method
...
* 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-11-03 10:45:59 +00:00
Max Horn
c7fde102e3
Renamed FilesystemNode -> FSNode
...
svn-id: r34716
2008-10-02 16:58:59 +00:00
Lars Persson
aabf8ab1f4
Remove SYMBIAN special handing from default handler.
...
svn-id: r34403
2008-09-07 12:54:26 +00:00
Max Horn
55a05dc0f4
Some cleanup by peres
...
svn-id: r34308
2008-09-03 15:22:19 +00:00
Max Horn
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Johannes Schickel
c41e1d9ded
Added missing include.
...
svn-id: r34275
2008-09-02 13:05:43 +00:00
Max Horn
4f5479ee74
Pushed some port specific code from DefaultSaveFileManager out to port specific code in backends/platform/
...
svn-id: r33621
2008-08-04 19:38:28 +00:00
Max Horn
2f2a4f03d0
Modified DefaultSaveFileManager::checkPath to perform at least basic checks on non-UNIX, non-Symbian systems
...
svn-id: r33615
2008-08-04 17:41:07 +00:00
Max Horn
92d6ee3d76
Moved ConfMan.registerDefault calls for savepath to DefaultSaveFileManager (eventually, should be pushed into backends/platform/ code)
...
svn-id: r33614
2008-08-04 17:17:37 +00:00
Max Horn
d061e50a7e
DefaultSaveFileManager: Killed class StdioSaveFile, used FilesystemNode::openForReading()/openForWriting() instead (may cause regressions, watch out)
...
svn-id: r33608
2008-08-04 11:48:33 +00:00
Max Horn
c92ee34e45
Removed join_paths from default save manager, and use FSNode API instead (may lead to regressions, watch out)
...
svn-id: r33605
2008-08-04 11:32:42 +00:00
Sven Hesse
1f4ebd2f47
Don't let listSavefiles() search subdirectories. Files with the same name (in different directories) would cause duplicate entries for the same file.
...
svn-id: r32938
2008-07-07 13:01:54 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
80e776e0fb
Fix DefaultSaveFileManager::listSavefiles to return the savefile *name*, not the *path* (which is meaningless in the context of savefiles)
...
svn-id: r30373
2008-01-10 11:54:31 +00:00
Max Horn
c54562d9a3
The PS2, DS and PalmOS ports currently do not properly implement their SaveFileManagers -- flagging the incorrect & invalid code by making it not compile. Note: Portser should probably also fix their code in the 0.11 branch
...
svn-id: r30079
2007-12-30 13:05:38 +00:00
Max Horn
55b6ee3982
Modify DFSM::getSavePath to return a Common::String instead of a char*
...
svn-id: r30061
2007-12-28 21:12:30 +00:00
David Corrales
a31bd32bc5
Change the checkPath() method to receive a String& instead of a char*, to make code clearer.
...
svn-id: r30060
2007-12-28 16:47:28 +00:00
Torbjörn Andersson
0d350e1d4d
Fixed compilation.
...
svn-id: r30050
2007-12-28 11:39:09 +00:00
Max Horn
8464150d42
Get rid of PSP / PalmOS hacks in DefaultSaveFileManager::getSavePath
...
svn-id: r30046
2007-12-28 10:00:54 +00:00
Eugene Sandulenko
d4d072fe04
Patch #1857121 : Refactoring of the getSavePath method
...
svn-id: r30032
2007-12-28 07:37:04 +00:00
Kostas Nakos
b6165d3280
work around lack of errno in ce
...
svn-id: r29387
2007-11-03 21:17:40 +00:00
David Corrales
dc29c25b71
Fixed a long due typo in the error messages inside the DefaultSaveFileManager.
...
svn-id: r29341
2007-10-31 19:09:23 +00:00
Filippos Karapetis
94499005cf
Fixed compilation under Windows
...
svn-id: r29340
2007-10-31 18:51:11 +00:00
David Corrales
2ac075e569
Removed the Common::File::removeFile() methods, and moved their implementation to the Common::DefaultSaveFileManager::removeSavefile() method, as per Marcus' appraisal and Max's approval.
...
svn-id: r29337
2007-10-31 13:59:59 +00:00
David Corrales
ec38b85a44
Committing the set of patches #1814434 , thanks to jvprat. They improve the documentation and parameter naming of the lookFile methods inside Common::FS.
...
svn-id: r29228
2007-10-16 20:24:39 +00:00
Lars Persson
cd3e35103c
Symbian OS does not have ELOOP defined as an error, so #ifdef around those two cases.
...
svn-id: r29118
2007-09-28 20:36:54 +00:00
Travis Howell
6b639c6b21
Rename file removal functions, to avoid conflicts. Add save game path, when removing files via SaveFileManager.
...
svn-id: r29001
2007-09-21 05:27:33 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
c3d3aebe87
Patch #1768757 : Merge fsnode-gsoc into trunk (MAJOR change, will break compilation on some ports)
...
svn-id: r28944
2007-09-18 20:02:04 +00:00
David Corrales
9752c75f40
Add a removeSavefile() to the default savefile manager based on the new Common::File::remove().
...
svn-id: r28282
2007-07-29 01:36:59 +00:00
David Corrales
21f352b2df
Added error codes to the SaveFileManager via the SFMError enum. Also, solved TODO's in the default-saves implementation.
...
svn-id: r28140
2007-07-18 20:51:26 +00:00
David Corrales
720c974faf
Changed SaveFileManager::listSavegames() function to be engine agnostic. It now returns a list will the full paths of existing files that match a given regex.
...
Additionally, modified the 5 engines which use the default manager (Agos, Queen, Saga, Scumm and Touche) to parse the filename list and mark the available saves bool array correctly.
svn-id: r28046
2007-07-12 17:58:15 +00:00
David Corrales
779f702b69
Fixed a very strange bug with strings. Also added a couple sanity checks.
...
svn-id: r27973
2007-07-08 17:44:26 +00:00
David Corrales
9bfe5d5354
Merged the FSNode branch with trunk r27681:27969
...
svn-id: r27970
2007-07-08 16:58:54 +00:00
David Corrales
256e4d9521
Initial patch to the listSavefiles method. Now only the existing savegames are marked as available.
...
svn-id: r27957
2007-07-08 07:19:50 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
5d59ee6091
Add a flag which makes it possible to disable the default savefile man (for backends which want to use our Makefile build system but don't want the default saveman)
...
svn-id: r26152
2007-03-16 23:07:08 +00:00
Max Horn
7f07e6e48a
Replaced the old code for compressed savegames (which was using the gzopen/gzread/etc. API, and thuse tied to FILE/fopen/fread/etc.) with a new wrapper approach, which allows reading/writing gzip data via arbitrary SaveFile implementations, and thus can be used with custom savefile implementations
...
svn-id: r25669
2007-02-18 02:25:39 +00:00
Max Horn
aaf706a43d
Don't mkdir the default savepath whenever we startup; rather, mkdir (on Unix/Symbian, at least) the savedir just before we need it, i.e. just before saving. Fixes bug #1504398
...
svn-id: r25150
2007-01-21 15:17:28 +00:00
Chris Apers
4e63968994
Fixed and updated Palm save manager
...
svn-id: r24602
2006-11-04 16:22:58 +00:00
James Brown
0e66c43c70
Fix some more duplicated files, and unify case for rpc include
...
svn-id: r23459
2006-07-09 13:10:45 +00:00
Max Horn
6a588f8399
Moved savefile code to new 'saves' backend module (work in progress)
...
svn-id: r23282
2006-06-24 10:08:43 +00:00