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
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