Eugene Sandulenko
70dd879e2f
Implement ADGF_KEEPMATCH
...
svn-id: r32497
2008-06-02 18:19:58 +00:00
Eugene Sandulenko
12c3798ffb
Plug memory leak
...
svn-id: r32496
2008-06-02 18:19:18 +00:00
Filippos Karapetis
8a0abfb045
Fix for crash that occurs in the unarj's fallback code - _uncompressedData is not allocated when ARJ files have not been opened
...
svn-id: r32480
2008-06-01 21:57:30 +00:00
Eugene Sandulenko
452d46b3bf
Implement file fallback for archives
...
svn-id: r32476
2008-06-01 21:10:29 +00:00
Filippos Karapetis
f5d9eb32f0
Fixed MSVC warnings
...
svn-id: r32474
2008-06-01 20:05:21 +00:00
Eugene Sandulenko
8728cd2881
Speed up decoding by memory caching
...
svn-id: r32472
2008-06-01 19:07:13 +00:00
Eugene Sandulenko
cc74ec5c39
Unarj code based on unarj 2.62. Used by Drascula engine
...
svn-id: r32460
2008-06-01 11:43:20 +00:00
Willem Jan Palenstijn
90bf3de2d6
Decrement _nele when erasing an element from hashmap, and add a test-case for this bug.
...
svn-id: r32343
2008-05-28 18:32:05 +00:00
Jordi Vilalta Prat
4306e1e0eb
Made some methods virtual to allow File subclasses
...
svn-id: r32311
2008-05-27 02:39:51 +00:00
Jordi Vilalta Prat
6d6d634db1
Made fallbackDetect to allow subclasses to override it
...
svn-id: r32295
2008-05-26 18:03:55 +00:00
Neil Millstone
d019420649
Removing DS ifdef from getFileSystemFactory().
...
svn-id: r32248
2008-05-24 15:01:19 +00:00
Johannes Schickel
cc08a4953d
Cleaned up engine debug level code.
...
svn-id: r32195
2008-05-20 16:37:32 +00:00
Johannes Schickel
26d6e2c68a
Typo.
...
svn-id: r32191
2008-05-19 23:22:11 +00:00
Max Horn
ecf9d72ab4
Removed some more obsolete GP32 code
...
svn-id: r32179
2008-05-19 13:15:32 +00:00
Max Horn
df58a64ce0
Removed some dead code
...
svn-id: r32178
2008-05-19 13:13:41 +00:00
Max Horn
6206fb2a18
Removed the default OSystem::getTimeAndDate() implementation
...
svn-id: r32138
2008-05-15 11:36:56 +00:00
Johannes Schickel
311e9165ed
Proper delete[] formatting (this time all occurences should've been changed...)
...
svn-id: r31929
2008-05-07 15:09:10 +00:00
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