Commit graph

64 commits

Author SHA1 Message Date
Hubert Maier
5eefa62899 AMIGAOS: Re-add a DosList feature
To keep consistency with the original code i re-added the DosList feature dol_Port (which was taken out due to a compiler error using SDK 53.24 and was named wrong anyway).
It offers a message port for the DosList.
2015-01-26 19:56:24 +02:00
Willem Jan Palenstijn
4b09957386 AMIGAOS4: Fix getParent() for non-directories
The previous attempt in d32816c0 was broken because it failed
to realize that _pFileLock is only set for directories.

This patch also tries to clarify this by making the root node logic
explicit in isRootNode().
2014-10-11 21:13:13 +02:00
raziel-
a09b2ad23a AMIGAOS: More cleanup
Another case of misused TAB
2014-09-22 11:01:09 +03:00
raziel-
a4520d19e6 AMIGAOS: Cleanup
Comments cleanup and one case of a misused TAB
2014-09-21 17:46:03 +02:00
Johannes Schickel
1028bd343f AMIGAOS4: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Willem Jan Palenstijn
d32816c027 AMIGAOS4: Allow getParent() to work for non-directories 2014-01-22 22:54:14 +01:00
Willem Jan Palenstijn
58aaef33c1 AMIGAOS4: Make isReadable return false for non-existent files
This also properly initializes _bIsValid for non-existent files.
For consistency, isWritable() is changed analogously to isReadable(),
even though it should not lead to changes in behaviour.
2014-01-22 22:54:05 +01:00
Strangerke
97d28f0e72 AMIGAOS4: Make use of updated function names (SDK53.24) and remove unused code
Courtesy of Raziel^
2013-10-25 21:11:12 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
f62fd4f25f BACKENDS: Avoid #including .cpp files
So far, the various *-fs-factory.cpp files were #including the
corresponding *-fs.cpp files. This is surprising and hence could lead to
all kinds of problems). To fix this, provide proper headers for the
*-fs.cpp files.
This also makes code reuse via subclassing possible.

Since not all ports were tested, this will likely lead to a few
easy to fix compile regressions.
2011-05-03 13:22:00 +02:00
Max Horn
651e2760a3 Fix spelling, cleanup
svn-id: r49843
2010-06-15 12:33:20 +00:00
Torbjörn Andersson
039d7d5e1c Removed unnecessary semi-colons.
svn-id: r46232
2009-12-01 19:19:58 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Max Horn
3c8500c149 Patch #2856708: AMIGAOS4: FS updated to new SDK
svn-id: r44338
2009-09-25 09:57:38 +00:00
Willem Jan Palenstijn
6abcac40de don't test existence of file in AmigaOSFilesystemNode::getChild (bug #2487481)
svn-id: r36171
2009-02-01 09:49:24 +00:00
Max Horn
de8fa39b25 Fix for bug #2548995: AmigaOS4: Compiler error (and taking care of some potential errors in WinCE & GP2x, too)
svn-id: r36146
2009-01-30 14:26:34 +00:00
Max Horn
8f16458e9b Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
svn-id: r36014
2009-01-23 03:41:36 +00:00
Max Horn
c7fde102e3 Renamed FilesystemNode -> FSNode
svn-id: r34716
2008-10-02 16:58:59 +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
Max Horn
7f18aaf8ec Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
svn-id: r34304
2008-09-03 12:56:46 +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
Johannes Schickel
600ab40bca Changed all delete [] usages to delete[].
svn-id: r31927
2008-05-07 14:31:45 +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
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
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
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
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
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
0cab5b7791 Merged the fs branch with trunk. r26949:27031
svn-id: r27032
2007-05-31 23:44:43 +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
c459f054b4 Use abstract factories to initialize FilesystemNode objects.
svn-id: r26739
2007-05-03 02:39:33 +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
Max Horn
6ed00cd055 Added FilesystemNode::name method
svn-id: r23553
2006-07-22 14:14:16 +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
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
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
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