Lars Persson
7675b3546d
Remove _name.clear(); from Close since same File instance is re-opened by Symbian using that filename.
...
svn-id: r23152
2006-06-16 22:20:07 +00:00
Oystein Eftevaag
0aa06392f8
Applied the patch included in bug rep [ 1503716 ] Leak in File::Open (on OS X) and unzOpen (on all)
...
svn-id: r23019
2006-06-11 02:23:17 +00:00
Max Horn
4743820e30
Fix for bug #1483213
...
svn-id: r22461
2006-05-13 18:14:23 +00:00
Max Horn
05f6adbbd9
Removed FilesystemNode::isValid (leaving it up to the porters to decide whether to remove their isValid code or not)
...
svn-id: r22317
2006-05-03 20:49:33 +00:00
Max Horn
d016c353c5
Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
...
svn-id: r22315
2006-05-03 20:43:26 +00:00
Max Horn
7e3df42510
Add a variant of File::addDefaultDirectory(Recursive) which takes a FilesystemNode instead of a string object
...
svn-id: r22265
2006-05-01 21:06:34 +00:00
Max Horn
13e4fc74e0
Add a File::open variant that takes a FilesystemNode as parameter
...
svn-id: r22251
2006-04-30 23:08:37 +00:00
Travis Howell
e163be131c
Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot in windows filesys backend was real cause of problem.
...
svn-id: r22194
2006-04-27 23:14:54 +00:00
Max Horn
cd528083f9
Removed 'directory' parameter of File::open
...
svn-id: r22183
2006-04-26 14:05:34 +00:00
Max Horn
8bb9ae92ad
Yet another revision of File::exists. I now believe the function really is 'wrong' right now (it has to fulfill too many roles right now). Need to correctly fix this later
...
svn-id: r22171
2006-04-26 08:29:32 +00:00
Max Horn
f42bb14ea3
Commited *correct* File::exists reimplementation (compared to my incomplete previous commit. Aargh)
...
svn-id: r22170
2006-04-26 08:13:25 +00:00
Max Horn
d5224d87bb
Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651 , at least partially)
...
svn-id: r22169
2006-04-26 08:05:40 +00:00
Max Horn
15ecef5b39
Remove superfluous exclamation mark
...
svn-id: r22108
2006-04-23 17:02:39 +00:00
Max Horn
ba1b25305e
Removed the directory parameter from md5_file
...
svn-id: r21937
2006-04-16 12:50:39 +00:00
Max Horn
1470dadb1d
Changed File::open to take a Common::String as file name parameter
...
svn-id: r21867
2006-04-14 01:48:51 +00:00
Max Horn
8dcf6ed006
Fix crash in fopenNoCase triggered by filenames/paths that exceeded ~ 512 bytes (see bug #1109687 )
...
svn-id: r21858
2006-04-14 00:36:54 +00:00
Max Horn
2ca3831777
Fixing the workaround for bug #1458388 (should have added trailing dot, but didn't)
...
svn-id: r21822
2006-04-12 08:10:49 +00:00
Max Horn
0c75d7d1c0
Removed the PalmOS specific hack in file.cpp in favor for code that should work everywhere (and hopefully will help the GP32 port, too).
...
svn-id: r21811
2006-04-11 22:29:51 +00:00
Chris Apers
37ecf6bc0a
Bad hack to make the file class work agaain with PalmOS ARM version - read the comment for more details
...
svn-id: r21806
2006-04-11 18:25:04 +00:00
Max Horn
935ed2dadb
Added const qualifier
...
svn-id: r21603
2006-04-04 21:18:58 +00:00
Max Horn
9ed2d26db5
Simplified the File::addDefaultDirectory(Recursive) code; avoid scanning directory multiple times
...
svn-id: r21527
2006-04-01 17:36:43 +00:00
Max Horn
f4339ff6c4
- Renamed class AssocArray to HashMap to match our existing class Map (note also
...
that many STL implementations have a class hash_map next to class map, too)
- Changed some static File class member vars to be normal static variables, in
yet another attempt to reduce header dependencies (in this case on hashmap.h)
svn-id: r21473
2006-03-28 10:05:25 +00:00
Eugene Sandulenko
dd505ff6ae
Fixing bug #1458388 : "SIMON1: Game Detection fails".
...
Sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot)
svn-id: r21455
2006-03-25 21:17:38 +00:00
Eugene Sandulenko
e373c9b7b5
- Revert my last change with moving addDefaultDirectory() from TheneNew.cpp
...
- Removed locking of further directory adds because it did not work for themes.
svn-id: r21452
2006-03-25 19:30:10 +00:00
Travis Howell
a98aea6efd
Add kListAllNoRoot type to listDir() to handle recent file class changes, on file system backends which use _isPseudoRoot
...
svn-id: r21449
2006-03-25 10:39:05 +00:00
Eugene Sandulenko
22042bc637
- Implemented case insensitive file reading. Left old system as a fallback
...
in case some engine writer decide to do something unwise
- Removed used of ConfMan.getKey("path") in file-related cases, because
now File class handles that
- Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters
weren't translated
svn-id: r21443
2006-03-25 04:17:17 +00:00
Oystein Eftevaag
dabfcbf10c
Moving the MacOS bundle file checking to another function, it was getting called redundantly.
...
svn-id: r21309
2006-03-15 09:41:22 +00:00
Oystein Eftevaag
58eed3830b
* 'make bundle' now copies the default theme files into the bundle.
...
* Common::File will now look inside the application bundle on MacOS X for a file if
it can't find it anywhere else (so it'll find default-theme.ini and .zip)
* Cleaned up some #ifs.
svn-id: r21308
2006-03-15 07:43:44 +00:00
Max Horn
36934b611d
Change CVS keywords to SVN keywords
...
svn-id: r20510
2006-02-11 09:53:53 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Chris Apers
c6c22db6ae
Change PalmOS ident
...
svn-id: r18746
2005-09-03 16:12:52 +00:00
Max Horn
b75c969e66
Moved class File and the MD5 stuff to namespace Common
...
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn
52bbc86797
Patch #1181544 (AmigaOS 4 changes)
...
svn-id: r18011
2005-05-09 21:21:21 +00:00
Travis Howell
789007ec67
Check for a '\' before adding slash too, otherwise starting a game in root directory will fail.
...
svn-id: r17763
2005-04-23 09:21:41 +00:00
Max Horn
969ef3dac9
* Added new virtual base class 'Stream', ReadStream and
...
WriteStream are now subclasses of it.
* Added new methods eos(), ioFailed(), clearIOFailed() to
all streams. This allows better error checking.
* SaveFile classes take advantage of these new standard
stream APIS
* Removed File::gets()
* Added SeekableReadStream::readLine() (replaces File::gets)
* Added WriteStream::writeString, for convenience
svn-id: r17752
2005-04-22 17:40:09 +00:00
Max Horn
bc44b5ec15
Added new interface SeekableReadStream
...
svn-id: r16493
2005-01-09 01:41:43 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
b78ac6a18b
Make use of our String class instead of juggling with char pointers; added File::exists method
...
svn-id: r15913
2004-11-27 15:09:53 +00:00
Eugene Sandulenko
0b3949389e
Extend fopenNoCase with probe of capitalized files, such as Cave.mid.
...
svn-id: r15812
2004-11-14 21:10:50 +00:00
Max Horn
f6d9b66e21
For now, perform writing always in the current directory (the old code would just create a new file in the first place it was looking at when using the write mode, which definitely is not what we want in most cases)
...
svn-id: r15730
2004-11-07 17:20:32 +00:00
Torbjörn Andersson
1fa79b09de
Got rid of ungetc() to save Chrilith from the trouble of implementing it
...
himself on PalmOS.
svn-id: r15616
2004-10-19 18:28:41 +00:00
Eugene Sandulenko
acf6e4a12f
Accepted patch #1048693 -- Making File::gets() more well-defined.
...
svn-id: r15608
2004-10-18 21:22:10 +00:00
Eugene Sandulenko
2337d924ce
Fix bug #1048129 which prevented eof() method from working.
...
svn-id: r15573
2004-10-16 18:40:06 +00:00
Eugene Sandulenko
54dc902ae4
Add gets() method to File class.
...
svn-id: r15572
2004-10-16 13:09:52 +00:00
Max Horn
61bf615168
Try the current dir last, not first
...
svn-id: r14469
2004-08-05 11:10:27 +00:00
Max Horn
cef2de6a69
Fixed bug #1001069 ; clarified/simplified some error messages
...
svn-id: r14375
2004-07-31 09:34:10 +00:00
Max Horn
1db27f0203
slightly more informative error messages in class File
...
svn-id: r14345
2004-07-26 22:53:29 +00:00
Max Horn
3381b831eb
Allow subclasses to modify File class members (e.g. to set _ioFailed); change some warnings into errors
...
svn-id: r14302
2004-07-23 01:39:05 +00:00
Max Horn
006cac577d
Simplified fopenNoCase (and reduced the code redundancy)
...
svn-id: r14252
2004-07-18 17:08:10 +00:00