Commit Graph

93 Commits

Author SHA1 Message Date
Pawel Kolodziejski
5cd5d2663d SAMSUNGTV: change default path 2011-05-25 19:22:17 +02:00
Max Horn
39076ef972 BUILD: Rename UNIX #define to POSIX 2011-05-25 13:23:03 +02:00
Pawel Kolodziejski
dc1d07774f SAMSUNGTV: changed paths 2011-05-24 13:31:28 +02:00
Max Horn
590c6ede63 BACKENDS: Move SCUMMVM_SAVEPATH env var handling to POSIX savefile manager 2011-05-23 19:12:26 +02:00
Pawel Kolodziejski
944e0be209 SAMSUNGTV: update port 2011-05-23 18:11:40 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Joost Peters
e28b402295 IRIX: Fix compilation 2011-05-08 01:25:09 +02:00
Max Horn
ff6533e1b3 PSP: Fix more forbidden symbol clashes 2011-05-03 14:14:21 +02:00
Max Horn
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Littleboy
5a1874e3d9 COMMON: Add SaveFileManager::copySavefile() and update SaveFileManager::renameSavefile() to use it 2011-03-24 18:51:58 -04:00
Max Horn
df05ed1a46 BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
svn-id: r54573
2010-11-29 16:18:43 +00:00
Max Horn
daf3fb0df7 WINCE: Remove tons of obsolete workaround code for 'missing' headers and funcs
svn-id: r54089
2010-11-05 10:31:36 +00:00
Max Horn
81a698d0a0 Convert some occurences of StringList to StringArray;
try to fix compile error in GP2x code

svn-id: r48286
2010-03-18 15:44:59 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Paweł Kołodziejski
4c2491df3b added support for samsung tv
svn-id: r45777
2009-11-09 14:43:05 +00:00
Joost Peters
6a5bd81599 PSP: improved suspend/resume support [patch from bluddy]
svn-id: r44276
2009-09-23 16:11:23 +00:00
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
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +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
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Joost Peters
1a5f531d23 Allow building of psp backend via configure (Part 1 - Still need to add the fixup + EBOOT packing steps).
Thanks dhewg and fingolfin for assistance. :)

svn-id: r39693
2009-03-25 21:58:16 +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
Max Horn
e260598bc9 Revert my previous commit. File still produces error 'wrapCompressedReadStream' is not a member of 'Common' with gcc 4.2.4, though
svn-id: r36006
2009-01-22 23:03:12 +00:00
Max Horn
5a77895274 Removed incorrect Common:: prefix from stuff that is not part of namespace Common
svn-id: r36005
2009-01-22 22:56:31 +00:00
Max Horn
6561a7bf36 Set/unified svn:keywords for all *.h and *.cpp files
svn-id: r35651
2009-01-01 17:05:05 +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
Joost Peters
f12b76b7fb add PSPSaveFileManager class (subclassed DefaultSaveFileManager)
svn-id: r34891
2008-11-03 22:21:34 +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
Max Horn
f3dfb5ebab Merged common/gzip-stream.* and common/zlib.*
svn-id: r34578
2008-09-16 11:50:10 +00:00
Max Horn
7df6071a77 Turned compressed savefile wrapper into a generic stream wrapper
svn-id: r34566
2008-09-15 21:55:50 +00:00
Willem Jan Palenstijn
eef9a003ba fix eos() behaviour for CompressedInSaveFile
svn-id: r34562
2008-09-15 19:19:30 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +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
Johannes Schickel
9138128f5c - Committed Max' compressed save backseeking support from patch #2050337 "KYRA/SCUMM: Thumbnail support/improvement"
- Extended SCUMM engine to support savegames without thumbnail header. (Increased savegame version to prevent saves to be loaded from older ScummVM versions)
- Fixed KYRA to properly support savegames without thumbnail header.

svn-id: r34054
2008-08-20 14:24:16 +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