Andre Heider
57d118e930
Added ISO9660/Joliet DVD support
...
svn-id: r35930
2009-01-19 23:57:49 +00:00
Andre Heider
964a451e42
Removed slashes as last char from directories
...
svn-id: r35894
2009-01-18 12:58:06 +00:00
Andre Heider
2e321f7a74
use pointers when passing struct stat
...
svn-id: r35882
2009-01-17 18:48:35 +00:00
Andre Heider
9f1ac87466
Reuse given stat flags when possible to avoid fstat() calls
...
svn-id: r35872
2009-01-16 19:32:19 +00:00
Andre Heider
18e67a8ed7
disable buffering for newlib's poor fread() implementation
...
svn-id: r35675
2009-01-02 18:00:12 +00:00
Max Horn
6561a7bf36
Set/unified svn:keywords for all *.h and *.cpp files
...
svn-id: r35651
2009-01-01 17:05:05 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
88ac9b5a9b
Silenced warning about redefinition of ARRAYSIZE under Windows, after the latest FS changes
...
svn-id: r35583
2008-12-27 20:21:55 +00:00
Andre Heider
4feac7a2e0
changes for the new libfat version. the root node now yields a list of all mounted devices
...
svn-id: r35504
2008-12-23 19:23:11 +00:00
Robin Watts
8f3b2e9b4d
Remove warnings from NDS build.
...
svn-id: r35172
2008-11-29 18:01:16 +00:00
Robin Watts
f897def64d
Eliminate some warnings from NDS specific code.
...
svn-id: r35157
2008-11-23 11:49:58 +00:00
Travis Howell
df9a1baadc
Fix regressions in HE games, when slashes are used in filenames for file opcodes.
...
svn-id: r35105
2008-11-17 11:09:57 +00:00
Neil Millstone
8b9311dd4e
DS: Fixing feof behaviour and path prefix stuff.
...
svn-id: r34934
2008-11-07 23:21:35 +00:00
Max Horn
c7fde102e3
Renamed FilesystemNode -> FSNode
...
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
468b387b97
Patch #2043093 (again - new patch): OS/2 patches for posix-fs
...
svn-id: r34595
2008-09-17 18:26:44 +00:00
Max Horn
2bcc5681d8
DS: Removing some dead code; merged (parts of) std_cwd into GBAMPSaveFileManager::listSavefiles
...
svn-id: r34587
2008-09-17 16:38:01 +00:00
Max Horn
05d78c26b4
DS: Backported 0.12 changes to trunk
...
svn-id: r34568
2008-09-15 22:43:20 +00:00
Max Horn
ace51b317a
DS: Some more compile fixes (prope solution would of course be to overload ::openForReading & ::openForWriting)
...
svn-id: r34550
2008-09-14 22:44:49 +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
02a846c669
Compilation fix for NDS
...
svn-id: r34542
2008-09-14 21:32:45 +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
Lars Persson
169edfccf3
Added SymbianStream.h for SymbianStdioStream definition
...
Renamed Symbian stream implementation to
SymbianStdioStream instead of StdioStream.
svn-id: r34498
2008-09-11 21:32:40 +00:00
Max Horn
14ac01a11a
Simplify check for a slash in the string *g*
...
svn-id: r34485
2008-09-11 09:25:13 +00:00
Max Horn
4a2a9f49ca
Small fix to help with compile problems on Amiga
...
svn-id: r34474
2008-09-10 09:20:38 +00:00
Lars Persson
c331a92243
Updated/Fixed Symbian Filesystem handling.
...
Does not store ending backslash on path, and will list any sub folder properly, by adding '\' when needed.
svn-id: r34453
2008-09-08 21:54:04 +00:00
Lars Persson
864c2244f0
Set default save path via save manager.
...
Fix bug in symbian-fs GetChild function.
svn-id: r34417
2008-09-07 16:43:03 +00:00
Lars Persson
c9262dd6e2
StdioStream implemented with Symbian file handling.
...
svn-id: r34400
2008-09-07 12:37:14 +00:00
Lars Persson
c4fcd2b578
Remove symbian defines from stdiostream.cpp
...
svn-id: r34399
2008-09-07 10:57:28 +00:00
Max Horn
f8bcb0782b
Unlike ferror, our Stream::ioFailed() is also supposed to return true when the end of stream has been reached
...
svn-id: r34385
2008-09-06 17:00:50 +00:00
Max Horn
e994723e7c
Some tweaks to help (?) OS/2
...
svn-id: r34368
2008-09-05 20:42:41 +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
Max Horn
196ce8eb98
POSIX FSNode: got rid of Double-slashes in paths for childs of the root; simplified code
...
svn-id: r34307
2008-09-03 14:55:19 +00:00
Max Horn
7f18aaf8ec
Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
...
svn-id: r34304
2008-09-03 12:56:46 +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
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Max Horn
c350ffabf3
Added new AbstractFilesystemNode::openForReading & ::openForWriting method, based on StdioStream; changed FilesystemNode to use them
...
svn-id: r34301
2008-09-03 10:40:46 +00:00
Filippos Karapetis
9691562987
Cleanup
...
svn-id: r34295
2008-09-03 09:03:21 +00:00
Max Horn
c752e5fcfa
Modified POSIX FSNode implementation to use Common::normalizePath & Common::lastPathComponent; added a TODO regarding relative paths
...
svn-id: r34283
2008-09-02 15:19:31 +00:00
Max Horn
cb21c25e41
FSNode code: Merged most versions of lastPathComponent() into one new AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character
...
svn-id: r34197
2008-08-27 20:31:22 +00:00
Max Horn
5860aa45b7
Slightly modified form of patch #2043093 : OS/2 patches for posix-fs
...
svn-id: r34193
2008-08-27 18:38:06 +00:00
Max Horn
16e02f051d
Turned SymbianFilesystemFactory from a singleton into a normal class; adapted symbian backend accordingly
...
svn-id: r34101
2008-08-22 11:49:34 +00:00
Max Horn
b727ac880d
Turned Windows, AmigaOS and POSIX FSFactories into plain classes; no need for them to be singletons (actually true for all other FS factories)
...
svn-id: r34098
2008-08-22 11:36:47 +00:00
Max Horn
74238bb53a
Moved POSIXFilesystemNode class declaration to a new header file, to enable subclassing
...
svn-id: r34097
2008-08-22 11:19:41 +00:00
Lars Persson
a045b77b59
Don't Use CEikonEnv::Static, get FS from system class instead
...
svn-id: r34025
2008-08-19 08:54:28 +00:00
Max Horn
8a84e3a46f
cleanup
...
svn-id: r33847
2008-08-13 20:37:54 +00:00
Travis Howell
a9bef1051e
Remove file attribute check, since getChild() can be called on file path that doesn'r exist.
...
svn-id: r33633
2008-08-05 11:42:04 +00:00
Max Horn
01f07b5e21
cleanup
...
svn-id: r33587
2008-08-03 18:29:37 +00:00
Nicola Mettifogo
b0e2cd5967
Fixed constructor for WindowsFilesystemNode. On Windows, trailing slashes can be added only to directory names.
...
svn-id: r33350
2008-07-28 02:56:17 +00:00
Eugene Sandulenko
5e666ef774
Patch #1971285 : "Nintendo Wii port"
...
svn-id: r32547
2008-06-04 20:28:20 +00:00
Max Horn
5288daa863
DS: Forgot to commit #include changes in the ds-fs.* files; this allows to get rid of -Isource/fat
...
svn-id: r32520
2008-06-03 21:04:41 +00:00
Max Horn
defc030143
Removed the GP32 port
...
svn-id: r32139
2008-05-15 11:40:38 +00:00
Johannes Schickel
600ab40bca
Changed all delete [] usages to delete[].
...
svn-id: r31927
2008-05-07 14:31:45 +00:00
Lars Persson
acc5d79d7c
Remove Symbian FS creation from common SDL code
...
svn-id: r31364
2008-04-02 21:19:17 +00:00
Max Horn
e93a1f0c32
Removing dead code
...
svn-id: r31304
2008-03-29 21:17:43 +00:00
Max Horn
05b159609b
Removed remaining traces of the dead MorphOS backend, which itself was removed about one year ago
...
svn-id: r31114
2008-03-12 18:42:47 +00:00
Travis Howell
608be9666d
Fix compile.
...
svn-id: r31035
2008-03-03 01:09:09 +00:00
Robert Göffringmann
3b27b9fa43
the ps2 changes from the 0.11.1 release, plus some bugfixes and cleanup.
...
svn-id: r31034
2008-03-03 00:41:59 +00:00
Marcus Comstedt
964caae2dd
Moved Dreamcast filesystem factory to platform directory.
...
svn-id: r31021
2008-03-01 15:45:54 +00:00
Chris Apers
29c6c7a626
Fixed FileSystemNode::exists() method, see bug #1875588 . SAGA engine works fine now
...
svn-id: r30979
2008-02-26 20:54:02 +00:00
Max Horn
5c99d45d9f
Don't #include the FS factory implementations in common/system.cpp; rather, rely on the build system to include them
...
svn-id: r30957
2008-02-24 23:14:04 +00:00
Filippos Karapetis
dbba13a7ac
Stop redefinitions of ARRAYSIZE
...
svn-id: r30954
2008-02-24 15:00:28 +00:00
Max Horn
e421a23639
Replaced FilesystemFactory::makeFSFactory with a new method OSystem::getFilesystemFactory()
...
svn-id: r30947
2008-02-23 23:03:08 +00:00
Max Horn
80d55b0388
Renamed AbstractFilesystemFactory to FilesystemFactory
...
svn-id: r30935
2008-02-23 19:01:12 +00:00
Marcus Comstedt
4c117772bd
Implement exists(), isReadable() and isWritable().
...
svn-id: r30773
2008-02-03 17:02:51 +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
Lars Persson
8d3f7c68ee
Functionality for is readable and writable
...
svn-id: r30601
2008-01-21 20:48:25 +00:00
Max Horn
e8374f6775
Removed obsolete comment, fixed indention
...
svn-id: r30589
2008-01-20 17:12:00 +00:00
Lars Persson
f3e42ffa39
- Updated version numbers, Implemented exists properly, Added two engines in main_features.inl
...
svn-id: r30586
2008-01-20 12:50:27 +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
Joost Peters
fa1495de7b
implement exists(), isReadable() and isWritable() stubs using access()
...
svn-id: r30537
2008-01-17 21:35:31 +00:00
Max Horn
fa1052e1b2
Removed obsolete comment
...
svn-id: r29992
2007-12-25 23:16:52 +00:00
Neil Millstone
1cfedb217a
Remove a comment
...
svn-id: r29943
2007-12-21 18:34:08 +00:00
Neil Millstone
8183d56407
Implement exists() in DS file system
...
svn-id: r29942
2007-12-21 18:30:25 +00:00
Max Horn
66a1c085c0
Expand ~/ to the HOME env var (see also patch #1846545 )
...
svn-id: r29797
2007-12-09 17:28:29 +00:00
David Corrales
6afbcc89a7
Factorize most of the common code in the isReadable() and isWritable() methods for the AmigaOS backend, via the getFibProtection() method.
...
svn-id: r29342
2007-10-31 19:37:34 +00:00
David Corrales
b5653141fa
Properly implemented the isReadable() and isWritable() methods for the AmigaOSFilesystemNode backend.
...
Thanks a lot to Raziel_One on this one :)
svn-id: r29339
2007-10-31 17:43:40 +00:00
Johannes Schickel
e7e0532e1b
- free fib object in AmigaOSFilesystemNode::exists
...
- cleanup
svn-id: r29330
2007-10-30 21:57:41 +00:00
David Corrales
0f741540d0
Fixed a typo in the AmigaOSFilesystemNode::exists() method.
...
svn-id: r29329
2007-10-30 21:37:00 +00:00
David Corrales
bc0c8afc39
Added a missing variable to the AmigaOSFilesystem::exists() method. Hopefully it's complete now :)
...
svn-id: r29328
2007-10-30 21:35:26 +00:00
David Corrales
5b9e6a47fc
Implement the AmigaOSFilesystemNode::exists() method.
...
svn-id: r29327
2007-10-30 21:31:39 +00:00
Kostas Nakos
371cc6deda
make sure our GetCurrentDirectory is used (non existant in ce api)
...
svn-id: r29300
2007-10-28 17:59:14 +00:00
Joost Peters
281767f19e
fix compile after recent fs code rename
...
svn-id: r29229
2007-10-17 19:45:23 +00:00
Neil Millstone
688f074ea5
Fixed a load of compile errors, reverted additions to lastPathComponent() which were clearly in error.
...
svn-id: r29204
2007-10-13 15:41:34 +00:00
David Corrales
9cdb195df7
Fixed a missing return value in the lastPathComponent function. Thanks to Raziel_AOne :)
...
svn-id: r29172
2007-10-07 20:42:46 +00:00
David Corrales
aba30d7ea8
Commit of patch #1804861 . It implements a static lastPathComponent() function in each backend, used to extract the last path component of a given path, returned by getName().
...
svn-id: r29159
2007-10-07 00:28:38 +00:00
Gregory Montoir
61a642b1cc
fixed savepath files listing under win32
...
svn-id: r29113
2007-09-27 20:39:06 +00:00
Johannes Schickel
b93e906285
oops.
...
svn-id: r29030
2007-09-22 20:51:34 +00:00
Johannes Schickel
2115e5d181
Hopefully fix amigos4 fs implementation.
...
svn-id: r29029
2007-09-22 20:47:41 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Joost Peters
59f36957e8
rename psp_fs.cpp to psp-fs.cpp (as per the naming convention)
...
svn-id: r28963
2007-09-19 08:16:37 +00:00
Joost Peters
55d7f0b132
_displayName now contains the last path component, not the full path
...
svn-id: r28962
2007-09-19 08:14:20 +00:00
Filippos Karapetis
d6dbb98bc9
Fixed compilation under MSVC8
...
svn-id: r28951
2007-09-18 23:05:33 +00:00
Max Horn
ab8997f64d
Fix linker issues when doing a plugin build, and (hopefully) also on Windows
...
svn-id: r28950
2007-09-18 21:34:57 +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
1400d28bfb
Initial commit of the new BaseFile implementation. It provides a common ground for file objects across platforms and divides responsibilities between the Common::File class and a base file implementation.
...
Also rearranged the factories into a new directory for clarity.
Note 1: The posix-file.h and cpp files are for testing only. Only the ds, ps2 and symbian architecture will use special BaseFile based objects.
Note 2: The current code does not yet make use of this new structure, since the Common::File remains intact.
svn-id: r28395
2007-08-01 22:07:50 +00:00
David Corrales
b95b3fe4f3
Fixed a subtle bug when browsing directories in the main game chooser.
...
svn-id: r28149
2007-07-19 20:21:47 +00:00
David Corrales
1a965aad95
Update the interfaces for the getChildren method to include the hidden flag.
...
Also added some missing method stubs to the gamecard dc port.
svn-id: r27984
2007-07-09 01:26:54 +00:00
David Corrales
8a36379d55
Fixed a couple compilation issues in the windows build.
...
svn-id: r27983
2007-07-09 01:16:13 +00:00
David Corrales
0ac96302fe
Initial implementation of the lookupFile() function. It's meant to search recursively for given
...
filename within a set of directories.
svn-id: r27551
2007-06-20 00:28:04 +00:00
David Corrales
8ebf479bc5
Added a new parameter to the getChildren function, which allows including hidden files in the results.
...
svn-id: r27514
2007-06-17 17:17:38 +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
David Corrales
fedfe66831
Added stubs for the exists(), isReadable() and isWritable() methods for all architectures.
...
svn-id: r27087
2007-06-04 22:02:35 +00:00
David Corrales
3e7c5b027e
Added a missing include in non-POSIX factories.
...
For the POSIX and Windows architectures, added exists(), isReadable() and isWritable()
svn-id: r27073
2007-06-04 03:46:56 +00:00
David Corrales
0cab5b7791
Merged the fs branch with trunk. r26949:27031
...
svn-id: r27032
2007-05-31 23:44:43 +00:00
David Corrales
6c69d531d2
Removed the now obsolete singleton declaration macro from the FSNode factories.
...
svn-id: r27031
2007-05-31 21:42:01 +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
David Corrales
3646c968c9
Merged the fs branch with trunk. r26472:26948
...
svn-id: r26949
2007-05-26 20:23:24 +00:00
David Corrales
d1f56d93f9
Use common/singleton.h in the concrete fs factories.
...
svn-id: r26814
2007-05-12 20:00:52 +00:00
David Corrales
86324f00bc
Renamed files and minor tweaks. Thanks LordHoto :)
...
svn-id: r26810
2007-05-12 18:17:40 +00:00
David Corrales
c459f054b4
Use abstract factories to initialize FilesystemNode objects.
...
svn-id: r26739
2007-05-03 02:39:33 +00:00
Chris Apers
cd6ec5e741
Cleanup
...
svn-id: r26695
2007-05-01 09:50:50 +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
b9a54d55a6
Added mapping from '/' to '\' since Symbian OS does n't support mixed mode (\ and / in the same filename).
...
svn-id: r26109
2007-03-12 20:13:07 +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
273480d492
Removed MAX_FILENAME_LENGTH workaround (using enum's instead of #defines means we can take advantage of namespaces)
...
svn-id: r26019
2007-03-08 16:53:30 +00:00
Lars Persson
ab605c6a41
Updated Symbian File handling to be able support AGI games, but do work due to a fluke in the AGI detection.
...
svn-id: r25912
2007-02-28 21:25:05 +00:00
Torbjörn Andersson
16e7a12878
Some very obvious cleanups.
...
svn-id: r25635
2007-02-16 17:13:29 +00:00
Max Horn
73c3625f1f
Fixing various doxygen warnings
...
svn-id: r25362
2007-02-03 21:37:52 +00:00
Neil Millstone
0c82694f47
Ported changes from branch-0-9-0 to fix grabRawScreen(), and palette corruption.
...
svn-id: r25129
2007-01-20 17:29:20 +00:00
Max Horn
fb795dabd0
Patch #1594533 : morphos fs backend
...
svn-id: r24690
2006-11-12 11:43:46 +00:00
Kostas Nakos
4524b49872
Initial commit of the wince-gcc re-port
...
svn-id: r24212
2006-10-08 18:15:18 +00:00
Max Horn
66cf5f0eef
Patch #1573141 : Attempt to fix AmigaOS 4 / Broken Sword 2 problems
...
svn-id: r24206
2006-10-08 12:50:53 +00:00
Max Horn
4c14cf6d1a
Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
...
svn-id: r23974
2006-09-23 00:42:35 +00:00
Max Horn
fd12695e59
Patch #1559806 : Fixes for AmigaOS 4 filesystem backend
...
svn-id: r23893
2006-09-16 17:56:26 +00:00
Marcus Comstedt
4342d61448
Added name() method.
...
svn-id: r23860
2006-09-10 09:10:30 +00:00
Neil Millstone
1da493ac00
Adding new name() method.
...
svn-id: r23813
2006-08-31 19:32:38 +00:00
Johannes Schickel
d639ca97ce
Oops. some systems are using '\\' instead of '/' fixing that now...
...
svn-id: r23797
2006-08-28 13:39:44 +00:00
Johannes Schickel
ac45e290f7
Fixing other FS backends to use the bug fixed version of the POSIX lastPathComponent too (also lets the Windows FS use the POSIX version of lastPathComponent too, since it's nicer than the fix I made)
...
svn-id: r23796
2006-08-28 13:34:15 +00:00
Johannes Schickel
d9cb390a7b
Fixing the Windows FS code to not delete the first character of a node, if it is just with a filename created. (which is not working yet though, but still the first char shouldn't be skipped)
...
svn-id: r23795
2006-08-28 13:17:36 +00:00
Oystein Eftevaag
69daf49a73
Don't strip the first character of the filename when FilesystemNode is instantiated with just the filename and no path.
...
svn-id: r23763
2006-08-26 19:16:15 +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
Max Horn
6ed00cd055
Added FilesystemNode::name method
...
svn-id: r23553
2006-07-22 14:14:16 +00:00
Won Star
167a1e5912
Fix FileSystem bug. Now 'Go Up' button works. :)
...
svn-id: r23527
2006-07-16 08:32:23 +00:00
James Brown
0e66c43c70
Fix some more duplicated files, and unify case for rpc include
...
svn-id: r23459
2006-07-09 13:10:45 +00:00
Max Horn
bea72e9514
Patch #1519399 : DS Backend
...
svn-id: r23452
2006-07-09 11:47:17 +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
Won Star
da64d9f72e
o WIP file cache code borrowed from PS2 port.
...
o add property
svn-id: r23062
2006-06-12 15:33:27 +00:00
Won Star
119a0192e1
* Move gp32-fs.cpp to fs/gp32 dir.
...
* Fix gp32 launcher code.
svn-id: r23023
2006-06-11 10:23:41 +00:00
Robert Göffringmann
93718ebef9
updated fs implementation
...
svn-id: r22974
2006-06-07 06:53:41 +00:00
Travis Howell
d47f3a76fb
Add trailing slash to getCurrentDirectory if required. Fixes bug #1500563 - WIN32/SCUMM: Using scummvm.exe targetname not possible
...
svn-id: r22923
2006-06-05 00:14:23 +00:00
Marcus Comstedt
51e1438020
Separated the Dreamcast filesystem backend from the POSIX one.
...
svn-id: r22883
2006-06-03 14:09:04 +00:00
Chris Apers
d224f5a6ce
Updated palmos FS based on lastest changes to the base class
...
svn-id: r22867
2006-06-03 11:21:39 +00:00
Joost Peters
69b5d6fa3d
fix PSPFilesystemNode::parent() + some minor cleanup
...
svn-id: r22727
2006-05-28 22:02:38 +00:00
Joost Peters
8c1d71851a
make getNodeForPath() use the proper PSPFilesystemNode ctor (and remove the old, now unused, one).
...
svn-id: r22726
2006-05-28 21:35:35 +00:00
Joost Peters
91cd652f1d
move psp_fs.cpp from backends/psp/ to backends/fs/psp/
...
svn-id: r22657
2006-05-26 10:46:52 +00:00
Travis Howell
1403a3511e
Add code for get current directory
...
svn-id: r22437
2006-05-13 11:18:52 +00:00
Travis Howell
1124fa8d90
Get current directory via a path of '.'
...
svn-id: r22435
2006-05-13 10:42:21 +00:00
Max Horn
3623a94927
Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941 .
...
svn-id: r22424
2006-05-12 21:41:54 +00:00
Max Horn
ed339aa771
Updated some comments
...
svn-id: r22422
2006-05-12 21:11:37 +00:00
Torbjörn Andersson
30c0bd63bc
Fixed bug #1483450 . Apparently, S_ISDIR() is undefined if stat() fails. The
...
change to the POSIXFilesystemNode constructor is the one that matters to this
bug. The changes to listDir() are made from paranoia.
svn-id: r22382
2006-05-08 04:48:40 +00:00
Max Horn
b2d4cd6a35
Paranoia
...
svn-id: r22379
2006-05-07 19:41:56 +00:00
Travis Howell
84c99c8242
Revert the last change, since AbstractFilesystemNode::child() handles files and directories
...
svn-id: r22319
2006-05-03 21:53:38 +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
Travis Howell
e4e7ba1d7a
Make sure AbstractFilesystemNode::child() only returns a directory in Windows
...
svn-id: r22306
2006-05-03 13:06:22 +00:00
Max Horn
31444d3d35
Some doxygen comment cleanup for (Abstract)FilesystemNode
...
svn-id: r22304
2006-05-03 11:42:50 +00:00
Max Horn
fea36d0112
Disabled evil getcwd hack in POSIXFilesystemNode
...
svn-id: r22302
2006-05-03 11:36:07 +00:00
Max Horn
9c1fc02328
Got rid of AbstractFilesystemNode::wrap (begone, evil hack)
...
svn-id: r22300
2006-05-03 11:13:21 +00:00
Max Horn
8c452daac2
Moved static methods getRoot / getNodeForPath from class FilesystemNode to class AbstractFilesystemNode
...
svn-id: r22298
2006-05-03 10:19:05 +00:00
Max Horn
d404b6150a
Started to separate AbstractFilesystemNode from FilesystemNode
...
svn-id: r22297
2006-05-03 10:14:05 +00:00
Marcus Comstedt
5468059d44
Removed compilation error.
...
svn-id: r22282
2006-05-02 22:27:24 +00:00
Max Horn
dbe1c50bc9
Added a missing '*' (which marks the comment as being one doxygen should process)
...
svn-id: r22268
2006-05-01 22:04:13 +00:00
Max Horn
e4a7de9d75
Patch #1479919 (AmigaOS maintaining)
...
svn-id: r22267
2006-05-01 21:53:31 +00:00
Lars Persson
49dd540213
_pseudoRoot was not intialized properly
...
svn-id: r22261
2006-05-01 15:36:54 +00:00
Lars Persson
492929ae53
Updated symbian-fs backend and cleanup
...
svn-id: r22260
2006-05-01 14:20:02 +00:00
Travis Howell
7b7d290675
Add windows code for AbstractFilesystemNode::child()
...
svn-id: r22253
2006-05-01 08:24:57 +00:00
Max Horn
8300d1d2a9
Added new AbstractFilesystemNode::child() resp. FilesystemNode::getChild() methods
...
svn-id: r22249
2006-04-30 22:52:10 +00:00
Travis Howell
c1572b2dbd
_isPseudoRoot should be always false, in WindowsFilesystemNode(const String &path)
...
svn-id: r22195
2006-04-27 23:16:45 +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
cf13cf3a70
I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse
...
svn-id: r22192
2006-04-27 17:21:33 +00:00
Max Horn
307f4e387b
Fixed getNodeForPath on systems using POSIXFilesystemNode to again correctly check whether the given path exists, and whether it points to a directory
...
svn-id: r22097
2006-04-23 12:29:43 +00:00
Eugene Sandulenko
065dcf5653
Part of patch #1467193 : "AmigaOS changes":
...
- Filesystem errors are now more detailed
- casting problems are hopefully gone
- some comments added in amigaos4-fs.cpp
svn-id: r21861
2006-04-14 01:06:08 +00:00
Chris Apers
4f28027c55
Fixed FS support based on lastest changes to the base fs class
...
svn-id: r21801
2006-04-11 18:13:04 +00:00
Max Horn
8271273cb5
Fallback to using stat() if readdir returns DT_UNKNOWN (replacing the AMD64 hack)
...
svn-id: r21767
2006-04-10 19:26:40 +00:00
Johannes Schickel
df1bc871f1
Forces usage of SYSTEM_NOT_SUPPORTING_D_TYPE on amd64 systems. (read comment for more information)
...
svn-id: r21739
2006-04-09 23:30:16 +00:00
Max Horn
4a8c9c323d
AmigaOS4 changes from tracker #1416370
...
svn-id: r21691
2006-04-08 12:39:27 +00:00
Max Horn
67fda4ece5
Cache the root node (cause a major speedup on OSX, since by far the slowes part in the FS code over here is the getcwd call in getRoot() )
...
svn-id: r21667
2006-04-07 11:47:58 +00:00
Max Horn
2d10d1960e
Use full path qualifiers in #include statements (exception: engines/ can be ommited, at least for now)
...
svn-id: r21620
2006-04-05 00:18:22 +00:00
Max Horn
bec09d3094
Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
...
svn-id: r21617
2006-04-04 23:55:47 +00:00
Eugene Sandulenko
66d8b85463
Allow symlinks to directories for FS;es with D_TYPE support.
...
svn-id: r21616
2006-04-04 23:52:56 +00:00
Eugene Sandulenko
004a39b3af
Symlinks are also valid files
...
svn-id: r21615
2006-04-04 23:44:27 +00:00
Travis Howell
194945f2a1
Rename variable in FSList::sort() to avoid conflict with system defines
...
svn-id: r21612
2006-04-04 23:26:11 +00:00
Max Horn
ac9203415e
Some more FS code cleanup
...
svn-id: r21600
2006-04-04 21:03:17 +00:00
Max Horn
ca6d345220
Possible bug in the Symbian FS code?
...
svn-id: r21599
2006-04-04 21:02:44 +00:00
Max Horn
e366ed75da
oops
...
svn-id: r21598
2006-04-04 21:01:26 +00:00
Max Horn
112ba72222
Removing more pseudo copy constructors in favor of the standard copy constructor (gee, everybody is copying my bad code, it seems ;-)
...
svn-id: r21597
2006-04-04 20:54:55 +00:00
Max Horn
bca4dd001f
Rewrote sort code to use iterators (means it can be used with any container now, in theory at least)
...
svn-id: r21596
2006-04-04 20:49:26 +00:00
Max Horn
ebeded36a1
Added comment on why we use getcwd in POSIXFilesystemNode at all
...
svn-id: r21582
2006-04-03 22:06:42 +00:00
Max Horn
4226aa761d
Fix AbstractFilesystemNode::wrap to not call (indirectly) getRoot, just to throw away the result immediately again (which (a) caused a slowdown and (b) a leak, both fixed now)
...
svn-id: r21581
2006-04-03 21:54:26 +00:00
Max Horn
5595ec5680
Various changes to POSIXFilesystemNode:
...
- Removed pseudo copy constructor, use the automatically generated one instead.
- Do not always call stat() whenever creating a POSIXFilesystemNode from a path.
- Use lastPathComponent in POSIXFilesystemNode(path) constructor.
- Some further cleanup.
svn-id: r21580
2006-04-03 21:18:24 +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
Lars Persson
37f433a7ad
* New and tested builds for S60V3 and UIQ3
...
* New upscaled icons for UIQ3/S60V3. SVG/Scalable version needed for S60V3 for proper good looks
* Critical bug in Symbian-fs fixed (exception for UIQ3/S60V3)
*Removed duplicate files for easier maintanence
*New handling for Symbian error messages, save paths etc
*All naming now is ScummVM for all apps and targets
svn-id: r20585
2006-02-12 00:27:19 +00:00
Max Horn
cbb2ca005c
Change CVS keywords to SVN keywords
...
svn-id: r20535
2006-02-11 12:47:47 +00:00
Max Horn
0ad58cdb95
Removed .cvsignore files
...
svn-id: r20424
2006-02-07 22:50:14 +00:00