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
Travis Howell
3559fcba43
Revert
...
svn-id: r24303
2006-10-14 03:15:35 +00:00
Travis Howell
05baf18ad6
Fix introduction of WW
...
svn-id: r24302
2006-10-14 03:14:47 +00:00
Max Horn
53f73eac85
Added explicit string equals/hash functors to a new header common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case
...
svn-id: r23634
2006-07-30 12:21:54 +00:00
Johannes Schickel
63aec29edb
Added isValid to FilesystemNode and AbstractFilesystemNode. See my mail to -devel for more information.
...
svn-id: r23567
2006-07-22 17:01:50 +00:00
Johannes Schickel
8116b6aab3
Using FilesystemNode::name instead of FilesystemNode::displayName in the fileclass too, then again this doesn't *have* to work. (check FilesystemNode documentation)
...
svn-id: r23562
2006-07-22 15:21:40 +00:00
Max Horn
d210b19aec
Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cpp
...
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h)
svn-id: r23274
2006-06-24 08:07:48 +00:00
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