Commit Graph
3029 Commits
Author SHA1 Message Date
Max Horn 1aac71ae34 Advanced detector: Let the user define a language/platform override for games which do not specify a fixed one (like multilingual versions)
svn-id: r31446
2008-04-07 20:56:34 +00:00
Eugene Sandulenko 04ff7cb1c1 Fix a recent regression reported in bug #1937042: "FEEBLE: Capitalization
variations when searching for files"

svn-id: r31445
2008-04-07 20:38:52 +00:00
Max Horn 29f1e6de38 Advanced detector: replaced kADFlagAugmentPreferredTarget by its inverse, kADFlagDontAugmentPreferredTarget (since all AdvDetector engines except Kyra used kADFlagAugmentPreferredTarget, it seems reasonable to assume that as default)
svn-id: r31413
2008-04-05 22:29:08 +00:00
Johannes Schickel dd8676877e - cleanup
- sort savefiles in kyra from newest -> oldest

svn-id: r31397
2008-04-05 02:40:28 +00:00
Max Horn 595be54083 cleanup
svn-id: r31391
2008-04-04 21:00:58 +00:00
Johannes Schickel a614273cf0 Oops forgot to enable friend statement.
svn-id: r31358
2008-04-02 02:15:47 +00:00
Johannes Schickel da9701d19b Implemented transparent List::iterator to List::const_iterator conversion and updated our tests accordingly.
svn-id: r31357
2008-04-02 02:15:00 +00:00
Johannes Schickel 8436943bfd Committed patch #1929274 "HashMap: Iterator rework".
svn-id: r31356
2008-04-02 02:01:31 +00:00
Johannes Schickel 39995e29ad Added fixme regarding header 'new'.
svn-id: r31339
2008-03-30 18:59:24 +00:00
Torbjörn Andersson a03547dc8e Some minor whitespace changes, and the customary "end of namespace" comment.
svn-id: r31338
2008-03-30 18:53:16 +00:00
Max Horn 57ad73faee Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)
svn-id: r31334
2008-03-30 18:37:09 +00:00
Johannes Schickel 351851971b Committed salty-horse's documentation patch.
svn-id: r31333
2008-03-30 18:32:42 +00:00
Bertrand Augereau 5f3529ce78 Whitespacing fixes
svn-id: r31330
2008-03-30 14:07:34 +00:00
Max Horn 7e1ba4732e Dropped superfluous 'virtual' keyword (saves us a few bytes for each String)
svn-id: r31327
2008-03-30 12:44:05 +00:00
Bertrand Augereau de5fca43e6 #include <cstring> => #include <string.h> (for size_t)
svn-id: r31325
2008-03-30 12:06:47 +00:00
Bertrand Augereau 7624cf28ab std::max => utils.h MAX
Added GPL headers

svn-id: r31324
2008-03-30 11:56:32 +00:00
Bertrand Augereau 78419238f9 The "anchor" (root) of the linked list is now constructed inplace in the List instead of being newed (it has the same lifetime as the List itself anyway)
svn-id: r31323
2008-03-30 06:37:46 +00:00
Torbjörn Andersson 49e3efe55e Fixed signed/unsigned warning.
svn-id: r31322
2008-03-30 06:12:16 +00:00
Bertrand Augereau a84d1ea78b The hashmap uses the memorypool for allocating/deallocating its Nodes
(It is faster and it saves approximately 70kB the DS or other small devices will appreciate having)

svn-id: r31321
2008-03-30 06:02:34 +00:00
Bertrand Augereau 411a588850 Introduction of a fixed size memory pool with a typical free list implementation
+ : amortized O(1) allocation, O(1) deallocation, less overhead per allocation
- : unused memory is not reclaimed until death or manual invocation of a function

svn-id: r31320
2008-03-30 05:42:39 +00:00
Johannes Schickel ff5743ba8f Cleanup.
svn-id: r31316
2008-03-30 02:43:18 +00:00
Johannes Schickel dcc385f3de Fixed hashmap code. (please make a better check next time when changing code in common/, this was a really bad one :-/)
svn-id: r31314
2008-03-30 02:36:23 +00:00
Johannes Schickel 3db24addcd - Added support for custom deletion operator (aka deleter) support for SharedPtr.
- Removed two failing comparison tests of SharedPtr in our test suite (those were not supported according to our documentation anyway)

svn-id: r31312
2008-03-30 01:26:51 +00:00
Johannes Schickel 08b54da75e Readded friend statement required by standard conform compilers. Disabled for gcc 2.95 though.
svn-id: r31311
2008-03-30 01:09:05 +00:00
Johannes Schickel 6a5ae22368 Formatting.
svn-id: r31308
2008-03-30 00:54:46 +00:00
Bertrand Augereau 7b295995dc Centralized the way the hashmaps allocate and free nodes (in order to instrument and maybe use a pool allocator later)
svn-id: r31305
2008-03-29 23:04:10 +00:00
Max Horn dbe38029db Changed FilesystemNode to use a SharedPtr instead of implementing its own ref counting
svn-id: r31303
2008-03-29 21:12:36 +00:00
Johannes Schickel e411ccc01f - allow SharedPtr objects with incomplete type
- updated documentation accordingly
- clarified documentation about comparison operators of SharedPtr

svn-id: r31301
2008-03-29 20:14:32 +00:00
Max Horn f93c076a7b Document SharedPtr bool conversion operator; added test cases for it; also added two test cases for the comparision operators, which currently fail
svn-id: r31299
2008-03-29 00:08:56 +00:00
Max Horn 1092b87cd7 Removed unused friends statement (causes internal compiler error with GCC 2.95 on BeOS)
svn-id: r31298
2008-03-29 00:04:33 +00:00
Johannes Schickel e29b4bb0cd Committed shared pointer implementation of patch #1895703 "COMMON: Managed List".
Unlike the patch on the tracker this commit includes documentation for SharedPtr.

svn-id: r31287
2008-03-28 06:03:59 +00:00
Johannes Schickel ff2ba585b3 Implemented SeekableSubReadStreamEndian moddeled after MemoryReadStreamEndian.
svn-id: r31270
2008-03-27 20:53:52 +00:00
Johannes Schickel 6412c82bf7 Added some inlines to MemoryReadStreamEndian.
svn-id: r31248
2008-03-26 21:16:16 +00:00
Max Horn b0c6a12c81 Modified Patch #1925352: Memory leak fixes
svn-id: r31244
2008-03-26 19:29:33 +00:00
Max Horn 81cff1f047 removed dead code
svn-id: r31222
2008-03-22 16:05:23 +00:00
Joost Peters 2c67073084 Implement OSystem_PSP::getFilesystemFactory() and OSystemPSP::getTimeAndDate()
svn-id: r31195
2008-03-19 11:07:27 +00:00
Max Horn 05dd6cee3a Got rid of EncapsulatedADGameDesc
svn-id: r31130
2008-03-15 15:25:49 +00:00
Max Horn 6547ef6e12 Started to get rid of Common::EncapsulatedADGameDesc (using plain Common::ADGameDescription instead)
svn-id: r31121
2008-03-14 17:31:04 +00:00
Max Horn aa81050117 cleanup
svn-id: r31120
2008-03-14 14:05:49 +00:00
Max Horn 8a9a14002e Advanced Detector: Changed fallback detector from a callback function pointer to an overrideable method of AdvancedMetaEngine
svn-id: r31119
2008-03-14 13:59:31 +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
Max Horn 3afe9c0b9e Added OSystem_SDL::getFilesystemFactory()
svn-id: r31107
2008-03-11 17:24:34 +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
Max Horn 142a39da22 Added Array::resize() method
svn-id: r30983
2008-02-27 14:06:06 +00:00
Max Horn 0a918b02fb Added Array::resize() method, matching vector::resize() from the std C++ lib
svn-id: r30982
2008-02-27 13:35:29 +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
Torbjörn Andersson f3b497787a Fixed warning.
svn-id: r30948
2008-02-24 01:12:39 +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