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