Le Philousophe
93a8f7f4d6
COMMON: Move Archive API to Path
2023-12-24 13:19:25 +01:00
Le Philousophe
56552fa282
COMMON: Various path related fixes in archives
2023-12-24 13:19:25 +01:00
elasota
6ed3c946ff
COMMON: Add a way to check if an archive member is in a Mac archive so we can avoid decompressing the data fork to check for MacBinary when the resource data is always in the alt stream.
2023-12-16 19:30:23 +01:00
elasota
1155eb7894
COMMON: Add isPathDirectory to Archive, and isDirectory and listChildren to ArchiveMember
2023-09-17 19:17:33 +02:00
elasota
9892bedc61
COMMON: Add createReadStreamForAltStream to open Mac resource fork and metadata streams
2023-08-30 00:31:00 +02:00
Simon Delamarre
c097a43a1f
COMMON: Allow to know the archive name of matching members in SearchSet
2023-08-28 21:52:38 +02:00
Ankush Dutt
b90efbe47c
COMMON: Handle writing failed in dumpArchive when not enough storage
2023-08-09 18:15:43 +02:00
elasota
b8acbe6bee
COMMON: Archive path refactoring, add getFileName and getPathInArchive that unambiguously return the filename or the full path
2023-07-19 18:51:37 +02:00
Le Philousophe
7880a660cf
COMMON: Allow to know in which archive file was found in SearchSet
2023-07-09 21:41:58 +02:00
elasota
e53d2ec594
COMMON: Add "getPathSeparator" to Archive and return ":" for Mac archive formats
2023-06-19 08:45:32 +03:00
Vladimir Serbinenko
6476e55aab
COMMON: Allow memcaching archive to bypass caching part and return a stream
...
It's useful for patchers if they can easily create a stream in some cases but
not others.
2023-03-13 20:17:33 +01:00
Vladimir Serbinenko
c33ce058f8
COMMON: Add createReadStreamForMemberNext for the ease of using patcher archives
2023-03-13 20:17:33 +01:00
Eugene Sandulenko
4d244d431f
COMMON: Added helper method for dumping Common::Archive contents
2023-02-10 23:51:13 +01:00
Eugene Sandulenko
b7b5ece6b5
COMMON: Added possibility to query archive from SearchSet
2023-02-10 01:19:34 +01:00
Eugene Sandulenko
5d08b1a0f3
COMMON: Add flag to match whole path for Archive::listMatchingMembers()
2023-01-08 01:15:52 +01:00
Vladimir Serbinenko
606a7a3e79
COMMON: Make MemcachingCaseInsensitiveArchive configurably to use weak pointers
...
This allows to keep memory footprint low on systems that are low on memory
2022-12-11 21:33:59 +01:00
Vladimir Serbinenko
b2def0293c
COMMON: Add MemcachingCaseInsensitiveArchive for caching archive contents
...
This allows to share code for caching decompressed contents.
2022-12-01 01:52:46 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
7adcd48a41
COMMON: Use override
...
Using clang-tidy modernize-use-override
2021-11-14 14:35:15 +02:00
Alexandre Detiste
6044504762
JANITORIAL: typos
...
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
SupSuper
8c86319923
BACKENDS: Use U32String for FSNode::getDisplayName
2021-08-23 21:22:27 +01:00
djsrv
ba28d7fde6
ALL: Change listMatchingMembers pattern to a Path
...
This handles any potential differences in directory separators passed to
the function, as with the other Archive functions.
2021-08-09 17:47:30 -04:00
djsrv
7eb4841065
ALL: Use Path type in Archive functions
2021-08-07 10:44:37 +02:00
Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Bartosz Gentkowski
3ff21ad8c2
DOXYGEN: Further doc updates in high priority files
...
Adding, editing, updating doxygen comments in header files:
- common/archive.h
- common/array.h
- common/config-manager.h
- common/list.h
- common/random.h
- common/rect.h
- common/savefile.h
2020-11-07 18:19:09 +00:00
Bartosz Gentkowski
b6c5d415ee
small edits, to be squashed
2020-10-05 13:43:50 +02:00
Bartosz Gentkowski
59fce86705
DOXYGEN: updates in first header files
...
Add and improve doxygen blocks in header files:
- achievements.h
- algorithm.h
- archive.h
- array.h
- bitstream.h
2020-10-05 13:43:50 +02:00
Bartosz Gentkowski
ec24687ce4
DOXYGEN: Add doxygen groups to header files in the common folder
...
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.
This improves the structure, readability, and findability
of information in the resulting output.
This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Le Philousophe
d62bb15d71
COMMON: Add ignoreClashes flag to SearchSet and FSDirectory
...
This lets engine mute warnings about name clashes when there are useless
for its case. This will be used by Versailles as the tree has
directories with the same name at various places.
Files are duplicated too in different directories but are identical.
2019-11-03 00:44:23 +01:00
Colin Snover
5bc4b46aa5
COMMON: Add comparator for sorting ArchiveMemberList
2017-09-08 16:02:32 -05:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Alyssa Milburn
7840b5e4b9
COMMON: Add depth/flat parameters to addSubDirectoryMatching.
2013-06-06 21:41:14 +02:00
Andrea Corna
a6ec4f70da
COMMON: Make more members of Archive constant.
2011-12-13 17:55:57 +01:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
Willem Jan Palenstijn
5674dda4cc
COMMON: Fix conflicting comment
2011-06-20 16:27:12 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
861e520579
COMMON: Try to clarify and update some Common::Archive docs
...
svn-id: r52131
2010-08-16 19:58:20 +00:00
Yotam Barnoy
1336b5464b
Fixed bug in archive.cpp that caused at least one engine (SAGA) not to work
...
svn-id: r44560
2009-10-03 20:12:44 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Willem Jan Palenstijn
6e38259270
Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories
...
svn-id: r41090
2009-06-01 00:01:32 +00:00
Max Horn
5181546c63
Rewrote Common::List iterator code to ensure const correctness is preserved.
...
We tried to implement the list iterators in a clever way, to reduce code
duplication. But this is essentially impossible to do properly, sadly --
this is one of the places where the ugly drawbacks of C++ really show.
As a consequence, our implementation had a bug which allowed one to
convert any const_iterator to an iterator, thus allowing modifying
elements of const lists.
This rewrite reintroduces code duplication but at least ensures that no
const list is written to accidentally.
Also fix some places which incorrectly used iterator instead of const_iterator
or (in the kyra code) accidentally wrote into a const list.
svn-id: r39279
2009-03-09 22:26:02 +00:00
Max Horn
9b45dd2849
Modified FSDirectory::lookupCache to return a FSNode *pointer*, so that we can distinguish between lookup failures and invalid cache entries. Also changed SearchSet::createReadStreamForMember to not use hasFile anymore, based on the assumption that any Archive::createReadStreamForMember implementation has to verify whether the member name is valid anyway (clarified the doxygen docs accordingly)
...
svn-id: r38787
2009-02-22 16:48:02 +00:00
Max Horn
17014c4f47
Merged internal 'matchPath' method of class Archive into global matchString function (via an optional 'path mode' in the latter). Also changed Archive::listMatchingMembers to use path mode when matching, just like FSDirectory::listMatchingMembers
...
svn-id: r38277
2009-02-15 18:45:53 +00:00
Max Horn
14c5bbbccf
Renamed Archive::openFile to createReadStreamForMember
...
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd
Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
...
svn-id: r36020
2009-01-23 04:36:18 +00:00
Max Horn
87a2747744
Turned FSNode into a ArchiveMember subclass; removed the now obsolete FSDirectoryMember; moved FSDirectory from common/archive.h to common/fs.h
...
svn-id: r35578
2008-12-27 18:03:27 +00:00
Max Horn
2fec0a3088
Moved addDirectory from SearchManager to SearchSet; changed several places from using '++it' instead of 'it++' to iterate over a list (this is more efficient)
...
svn-id: r35576
2008-12-27 17:16:48 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
ea3d4fe22d
cleanup
...
svn-id: r35381
2008-12-15 12:55:13 +00:00