Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-07-10 | Revert "COMMON: Change way the Singleton instances are instantiated" | Eugene Sandulenko | |
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken. | |||
2017-07-10 | COMMON: Change way the Singleton instances are instantiated | Thierry Crozat | |
This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available. | |||
2016-02-09 | COMMON: Fix formatting issues in archive.cpp. | Johannes Schickel | |
2014-02-18 | COMMON: Make GPL headers consistent in themselves. | Johannes Schickel | |
2013-06-06 | COMMON: Add depth/flat parameters to addSubDirectoryMatching. | Alyssa Milburn | |
2011-12-13 | COMMON: Make more members of Archive constant. | Andrea Corna | |
2011-08-07 | COMMON: Remove superfluous Common:: qualifiers. | Christoph Mallon | |
2011-08-07 | JANITORIAL: Remove trailing empty lines. | Christoph Mallon | |
2011-06-30 | ALL: Require DECLARE_SINGLETON to be used in the Common namepsace | Ori Avtalion | |
Silences the clang warning: static data member specialization of '_singleton' must originally be declared in namespace 'Common'; accepted as a C++0x extension [-Wc++0x-extensions] Wrapping "namespace Common {}" around the macro assignment causes clang to complain about a spurious semicolon, and removing the semicolon at the end of the macro causes some editors to misbehave. Changing the requirement of using the macro in one namespace (the global) to another (Common) seems a small price to pay to silence a warning. | |||
2011-05-12 | GIT: Clean up: Suppress SVN tags, now useless | strangerke | |
2011-04-28 | JANITORIAL: Reduce header dependencies in shared code | Ori Avtalion | |
Some backends may break as I only compiled SDL | |||
2010-11-16 | COMMON: Simplify DECLARE_SINGLETON macro | Max Horn | |
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258 | |||
2010-03-13 | Fix our DECLARE_SINGLETON macro to conform to the C++ specs. | Johannes Schickel | |
We need to use a namespace Common { } there to make strict C++ compilers like clang++ and comeau happy. I also added a slight comment about why that is needed to the macro definition and a note that you need to use it from the global namespace. svn-id: r48254 | |||
2009-11-21 | Ooops... | Johannes Schickel | |
svn-id: r46048 | |||
2009-11-21 | Change Archive::listMatchingMembers to match the pattern case-insensitively. | Johannes Schickel | |
svn-id: r46046 | |||
2009-10-03 | Fixed bug in archive.cpp that caused at least one engine (SAGA) not to work | Yotam Barnoy | |
svn-id: r44560 | |||
2009-09-23 | Got rid of Common::File::addDefaultDirectory, instead implemented the ↵ | Johannes Schickel | |
solution proposed in "Case agnostic handling for directories (and files)" on -devel. svn-id: r44266 | |||
2009-09-23 | COMMON: Add "ignoreCase" parameter to matchString. | Johannes Schickel | |
svn-id: r44265 | |||
2009-06-01 | Add a 'flat' option to FSDirectory to allow searching recursively for files ↵ | Willem Jan Palenstijn | |
in subdirectories svn-id: r41090 | |||
2009-03-09 | Rewrote Common::List iterator code to ensure const correctness is preserved. | Max Horn | |
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-02-24 | Moved FSDirectory implementation from common/archive.cpp to common/fs.cpp | Max Horn | |
svn-id: r38824 | |||
2009-02-22 | Modified FSDirectory::lookupCache to return a FSNode *pointer*, so that we ↵ | Max Horn | |
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 | Changed Common::File and FSDirectory to invoke FSNode::exists a few times ↵ | Max Horn | |
less, reducing overhead svn-id: r38780 | |||
2009-02-15 | Merged internal 'matchPath' method of class Archive into global matchString ↵ | Max Horn | |
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-01-29 | Be paranoid about g_system being set | Max Horn | |
svn-id: r36131 | |||
2009-01-23 | Renamed Archive::openFile to createReadStreamForMember | Max Horn | |
svn-id: r36021 | |||
2009-01-23 | Renamed ArchiveMember::open -> createReadStream, and made it a cv member ↵ | Max Horn | |
(const); same for Archive::openFile svn-id: r36020 | |||
2009-01-23 | Renamed FSNode::openForReading / openForWriting to createReadStream / ↵ | Max Horn | |
createWriteStream, again to make ownership of the returned stream clear svn-id: r36014 | |||
2008-12-27 | Turned FSNode into a ArchiveMember subclass; removed the now obsolete ↵ | Max Horn | |
FSDirectoryMember; moved FSDirectory from common/archive.h to common/fs.h svn-id: r35578 | |||
2008-12-27 | Moved addDirectory from SearchManager to SearchSet; changed several places ↵ | Max Horn | |
from using '++it' instead of 'it++' to iterate over a list (this is more efficient) svn-id: r35576 | |||
2008-12-22 | Fixed indentation and removed whitespaces at the end of line | Jordi Vilalta Prat | |
svn-id: r35481 | |||
2008-12-20 | Committed slightly modified version of my patch at bug tracker item #2309974 ↵ | Johannes Schickel | |
"ALL: */? match path separator in FSDir::listMatchingMembers". svn-id: r35450 | |||
2008-12-15 | cleanup | Max Horn | |
svn-id: r35381 | |||
2008-11-21 | Formatting / Cleanup. | Johannes Schickel | |
svn-id: r35141 | |||
2008-11-21 | refactor inconsistent calls to cacheDirectoryRecursive | Willem Jan Palenstijn | |
svn-id: r35140 | |||
2008-11-21 | Added ArchiveMember::getDisplayName() method; changed ↵ | Max Horn | |
ArchiveMember::getName() to always return a name compatible with Archive::openFile() svn-id: r35139 | |||
2008-11-07 | Reverted my earlier commit r34926. | Nicola Mettifogo | |
svn-id: r34930 | |||
2008-11-07 | Fixed leak when using SearchSet::add for an already existing name. | Johannes Schickel | |
svn-id: r34928 | |||
2008-11-07 | Fixed leaks in SearchMan. Default directories are now added with the ↵ | Nicola Mettifogo | |
'autoFree' parameter set to true. svn-id: r34926 | |||
2008-11-01 | Commit of patch #2207782 "ARCHIVE: New method 'getMember'". | Johannes Schickel | |
svn-id: r34871 | |||
2008-10-22 | Committed updated version of my patch #2184529 "SearchSet: Get rid of ↵ | Johannes Schickel | |
SharedPtr usage". svn-id: r34837 | |||
2008-10-22 | Removed File::addDefaultDirectoryRecursive, tweaked SearchMan API slightly | Max Horn | |
svn-id: r34836 | |||
2008-10-13 | Removed SearchManager::addArchive, since SearchManager::add offers the same ↵ | Johannes Schickel | |
functionallity. svn-id: r34795 | |||
2008-10-12 | * Added prefix support to cache entries of FSDirectory, as specified in ↵ | Nicola Mettifogo | |
patch #2034983. * Updated comments on most Archive-related classes. svn-id: r34776 | |||
2008-10-08 | Added an optional depth parameter to FSDirectory::getSubDirectory(), so that ↵ | Nicola Mettifogo | |
returned FSDirectory can be more flexibly configured. svn-id: r34756 | |||
2008-10-03 | Committed slightly modified patch #2034983 "Case-insensitivy and directory ↵ | Johannes Schickel | |
handling for engines". svn-id: r34734 | |||
2008-10-02 | Add the current dir to the global SearchSet, i.e. to SearchMan (this should ↵ | Max Horn | |
fix the problems on Windows, and maybe other systems, see 'bug' #2137680) svn-id: r34721 | |||
2008-10-02 | Renamed FilesystemNode -> FSNode | Max Horn | |
svn-id: r34716 | |||
2008-09-29 | add constructor to SearchSet::Node for proper init of structure members with ↵ | Gregory Montoir | |
gcc 3.4.x (see tracker items #2120595, #2106292) svn-id: r34686 | |||
2008-09-29 | Add priority parameter to the SearchMan API | Max Horn | |
svn-id: r34679 |