178 Commits

Author SHA1 Message Date
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Johannes Schickel
fb9bd9f442 Fix for bug #2198456 "FS: Cannot add a subfolder to a non-existing folder".
svn-id: r34857
2008-10-27 02:30:29 +00:00
Max Horn
f881b95ddd Removed File::addDefaultDirectoryRecursive, tweaked SearchMan API slightly
svn-id: r34836
2008-10-22 17:08:17 +00:00
Max Horn
c7fde102e3 Renamed FilesystemNode -> FSNode
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
7c0b2cfd27 Added multiple new open() methods to Common::File, which make it possible to use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName()
svn-id: r34696
2008-09-30 09:12:02 +00:00
Max Horn
a4292055f7 File::open no longer falls back to searching the current dir (if this causes any regressions, please report them; don't work around them, don't revert this change, without discussing it first)
svn-id: r34680
2008-09-29 10:32:06 +00:00
Max Horn
c549a0e708 Changed Common::File to use SearchMan
svn-id: r34663
2008-09-27 23:00:46 +00:00
Max Horn
5f2ceea1df Corrected and shortened some file opening related warnings
svn-id: r34556
2008-09-15 12:37:18 +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
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