Johannes Schickel
db04dd427d
Formatting.
...
svn-id: r31852
2008-05-03 23:02:05 +00:00
Torbjörn Andersson
06dea14540
Changed spaces to tab, thus annoying everyone who now have to do a large
...
recompile.
svn-id: r31848
2008-05-03 21:15:25 +00:00
Johannes Schickel
bba003e53a
Fixed segfault when trying to start invalid gameid from command line.
...
svn-id: r31731
2008-04-26 10:21:53 +00:00
Max Horn
e9abc1b191
Removed some dead code
...
svn-id: r31645
2008-04-21 17:07:57 +00:00
Johannes Schickel
f173041811
- moved kyra functor code to common/func.h
...
- adapted debugger code to use functor code from common/func.h
- adapted kyra engine to use functor code from common/func.h
svn-id: r31614
2008-04-20 15:47:11 +00:00
Filippos Karapetis
dcb6d4ed06
Reverted commit #31499
...
svn-id: r31502
2008-04-14 15:59:32 +00:00
Max Horn
805f21e369
Removed Common::Array::contains()
...
svn-id: r31501
2008-04-14 12:11:10 +00:00
Filippos Karapetis
c2e3572fe4
Added contains() method to Common::List, same as in Common::Array
...
svn-id: r31499
2008-04-14 10:07:15 +00:00
Filippos Karapetis
8cc1539315
Added eriktorbjorn's MemoryWriteStreamDynamic class - a stream that grows as it's written to
...
svn-id: r31498
2008-04-13 23:46:55 +00:00
Jordi Vilalta Prat
c1cd5d17c2
Correct documentation
...
svn-id: r31486
2008-04-11 19:05:44 +00:00
Eugene Sandulenko
1a5d45db68
Add way to denote CD versions of games and drop language in augmented
...
names per LordHoto's request.
svn-id: r31475
2008-04-10 21:41:57 +00:00
Johannes Schickel
48c9097672
Fixed compilation on gcc 2.95.
...
svn-id: r31447
2008-04-07 21:07:07 +00:00
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