Commit Graph
450 Commits
Author SHA1 Message Date
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