169 Commits

Author SHA1 Message Date
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
Max Horn
ff058e062d Switched File::open, File::addDefaultDirectory to use a SearchSet internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody
svn-id: r34444
2008-09-08 11:11:32 +00:00
Max Horn
10e342e37a Made File::addDefaultDirectory(Recursive) ignore FSNodes which are not dirs / are invalid, instead of erroring out
svn-id: r34430
2008-09-07 21:47:46 +00:00
Max Horn
4fd19a3378 Removed last traces of fopen / FILE from common/file.cpp
svn-id: r34393
2008-09-06 21:04:42 +00:00
Max Horn
1cecbebc49 Switched class File & DumpFile to use StdioStream internally
svn-id: r34391
2008-09-06 20:49:48 +00:00
Lars Persson
80dd18a820 Updated filehandling for Symbian OS
svn-id: r34346
2008-09-05 12:02:15 +00:00
Max Horn
5308f12c75 Ported AMIGA specific file buffering 'hack' from class File to StdioStream
svn-id: r34345
2008-09-05 11:59:33 +00:00
Lars Persson
5c0b91397d Updated Symbian OS file actions with ferror and fflush.
svn-id: r34340
2008-09-05 11:31:51 +00:00
Max Horn
320a5dc99f Moved StdioStream to its own files inside backends
svn-id: r34303
2008-09-03 11:49:02 +00:00
Max Horn
8246582f5e Added new StdioStream class, a thin wrapper around FILE
svn-id: r34300
2008-09-03 10:11:36 +00:00
Max Horn
05968b18c9 Modified DumpFile::open to accept non-existing nodes, and to actually open files in write mode -- d'oh
svn-id: r33609
2008-08-04 13:25:30 +00:00
Max Horn
99f546caad Moved the OutSaveFile::finalize method to WriteStream; implemented DumpFile::flush()
svn-id: r33604
2008-08-04 11:30:47 +00:00
Max Horn
fe9323ae57 Implemented DumpFile::open(FSNode)
svn-id: r33586
2008-08-03 18:11:27 +00:00
Max Horn
0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Max Horn
113352bbde Two new TODO/FIXME comments for class File
svn-id: r33138
2008-07-20 16:47:34 +00:00
Max Horn
fefad79249 No need to specify CaseSensitiveString_Hash explicitly anymore
svn-id: r32663
2008-06-11 06:00:56 +00:00
Eugene Sandulenko
04ff7cb1c1 Fix a recent regression reported in bug #1937042: "FEEBLE: Capitalization
variations when searching for files"

svn-id: r31445
2008-04-07 20:38:52 +00:00
Max Horn
57ad73faee Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)
svn-id: r31334
2008-03-30 18:37:09 +00:00
Jordi Vilalta Prat
d6c34bdc4b Fixed the spaces before tabs.
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
4ba2df8792 Use explicit path in #include statement (DS port specific)
svn-id: r30552
2008-01-18 17:24:34 +00:00
Oystein Eftevaag
05b5a493f8 Initial commit of the iPhone/iPod Touch backend
svn-id: r29488
2007-11-13 08:06:15 +00:00
Johannes Schickel
2387a642e5 Committed patch #1829748 "Fix for memory leaks in File::exists".
svn-id: r29474
2007-11-11 08:08:40 +00:00
Max Horn
41a8cb934c Removed now obsolete workarounds
svn-id: r29375
2007-11-02 13:00:21 +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
Kostas Nakos
b93f68405b work around ce's lack of posix errno
svn-id: r29298
2007-10-28 17:50:08 +00:00
David Corrales
6bf925cb6e Make the exists() method take into account default directories. This makes the method more robust, since previously it checked absolute paths only.
svn-id: r29227
2007-10-16 20:03:23 +00:00
Neil Millstone
5ddb1b0057 Added extra includes for the DS port now that stdafx.h is no longer included
svn-id: r29205
2007-10-13 15:44:56 +00:00
Marcus Comstedt
151e0cfa05 Provide dummy remove() function for DC...
svn-id: r29152
2007-10-03 21:50:20 +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
Sven Hesse
d455146e99 More comment fixing :P
svn-id: r28957
2007-09-18 23:37:31 +00:00
Johannes Schickel
5831459859 Fixed a typo. (Thanks to our Doctor for spotting it)
svn-id: r28956
2007-09-18 23:19:51 +00:00
Johannes Schickel
d5a2010197 Clarified the FIXME in Common::File::exists a bit.
svn-id: r28954
2007-09-18 23:15:53 +00:00
Johannes Schickel
2ed777d641 Fixes Common::File::exists. Please see the added FIXME comment about the real problem.
svn-id: r28952
2007-09-18 23:07:27 +00:00
Max Horn
90399fbf9c Fix some warnings
svn-id: r28947
2007-09-18 20:46:22 +00:00
Max Horn
3abc11611e Code formatting fixes
svn-id: r28945
2007-09-18 20:16:33 +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
1dc13a641d Merged some of the changes from the trunk patch back in to the GSoC fsnode branch.
svn-id: r28649
2007-08-18 05:24:18 +00:00
David Corrales
f42108e633 Added a remove() function to the Common::File class. Also changed the exists() function to account for new capabilities in the FSNode layer.
svn-id: r28150
2007-07-20 19:42:38 +00:00
David Corrales
fe4ee4740d Small bugfix. Wrong logical operator.
svn-id: r27474
2007-06-16 17:41:31 +00:00
David Corrales
f7ea7e666d Removed the isValid operation from the FilesystemNode class in favor of the much richer combinations possible with the new operations (exists, isReadable and isWritable).
The work on the Common::File class is far from complete. Only the necessary was updated.

svn-id: r27473
2007-06-16 17:31:36 +00:00
David Corrales
3b96c7fad5 Renamed methods in the FilesystemNode class to match the AbstractFSNode implementations.
Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode.

svn-id: r27113
2007-06-05 21:02:35 +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
Neil Millstone
c6d41c0755 Updating DS port for changes in main codebase. Code changes for DevkitArm r20 and latest libnds.
svn-id: r26394
2007-04-06 18:34:53 +00:00
Lars Persson
e8c941c128 Added shared filed support using native file APIs.
svn-id: r26087
2007-03-11 14:28:03 +00:00
Max Horn
a63c1cf3bd Moved the printf #define for the NDS into scummsys.h (not sure if that suits your needs Neil, feel free to change it again if necessary)
svn-id: r26024
2007-03-08 17:38:11 +00:00
Max Horn
d19adc0514 common/util.cpp needs fprintf; various std I/O functions are not used by anything in our code, so there is no need to emulate them -- mark these; my previous commits likely broke compilation of the DS backend, try to reduce the brokeness a bit
svn-id: r26023
2007-03-08 17:36:52 +00:00
Max Horn
47bc9aae19 Moving Nintendo DS std C I/O emulation wrappers to common/file.cpp; also add a FIXME comment (why is assert redefined in ds-fs.h ?)
svn-id: r26020
2007-03-08 16:57:14 +00:00
Max Horn
743698da6e Changed File::_handle to be of type void* instead of FILE* (to ease porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly)
svn-id: r26017
2007-03-08 16:46:02 +00:00
Max Horn
4efda86d7a Removed File::incRef and decRef
svn-id: r25920
2007-03-01 17:25:49 +00:00