Max Horn
aaa4d104f7
Added two new classes, BufferedReadStream & BufferedSeekableReadStream, as proposed on scummvm-devel
...
svn-id: r33419
2008-07-29 17:42:19 +00:00
Johannes Schickel
0a95a4814c
Added documentation for the functions in algorithm.h.
...
svn-id: r33416
2008-07-29 17:00:15 +00:00
Max Horn
bcac496615
CONFIGMAN: Store domains in the order they were added
...
svn-id: r33413
2008-07-29 16:12:42 +00:00
Max Horn
0be985ce83
Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
...
svn-id: r33412
2008-07-29 16:09:10 +00:00
Johannes Schickel
a1f48b91ea
Formatting.
...
svn-id: r33401
2008-07-29 09:23:54 +00:00
Johannes Schickel
290f76a623
Added a reset method to SharedPtr, which allows NULLifying it.
...
svn-id: r33400
2008-07-29 09:16:53 +00:00
Max Horn
d848543ee4
Changed advanced detector to *always* use the FSNode API for detection (i.e. killed second code path which used File::open trial&error directory 'scanning')
...
svn-id: r33388
2008-07-29 00:50:12 +00:00
Max Horn
1bf64890e5
Added Common::Rect::isEmpty() method
...
svn-id: r33279
2008-07-25 09:16:33 +00:00
Max Horn
918e0fe473
Reorder stuff a little bit, moving private String methods together: cleanup
...
svn-id: r33248
2008-07-23 16:49:45 +00:00
Max Horn
15c610a069
Added convenience method String::makeUnique(); simplified String::operator=(char c); extended String unit tests
...
svn-id: r33246
2008-07-23 16:33:53 +00:00
Max Horn
d5e2c6d4bf
Fix String::trim to work right for shared strings; augemented test cases to cover this
...
svn-id: r33234
2008-07-23 09:53:29 +00:00
Lars Persson
c296869108
Disable hashmemory pool for Symbian OS
...
svn-id: r33212
2008-07-22 19:09:10 +00:00
Max Horn
705c92ddc3
Added String::trim() method
...
svn-id: r33203
2008-07-22 14:39:26 +00:00
Kari Salminen
e09eb75ef7
Silence a warning which complains about using an uninitialized variable.
...
svn-id: r33169
2008-07-21 11:33:30 +00:00
Max Horn
ec1212eadf
Fix for bug #1971499 : ALL: config manager crashes when reading too long lines
...
svn-id: r33140
2008-07-20 16:52:25 +00:00
Max Horn
f7ec115f08
New SeekableReadStream::readLine_NEW() method, closely modelled after fgets, w/o the line length limitations of the old eekableReadStream::readLine() (which it will replace, after the feature freeze has been lifted)
...
svn-id: r33139
2008-07-20 16:47:52 +00:00
Max Horn
113352bbde
Two new TODO/FIXME comments for class File
...
svn-id: r33138
2008-07-20 16:47:34 +00:00
Max Horn
c625a6a647
Fixed potential issue in Common::String when asserting a substring of a string X back to X (memcpy -> memmove); also added some other sanity checks, and merged some duplicate code into a new method String::initWithCStr
...
svn-id: r33137
2008-07-20 16:42:56 +00:00
Max Horn
c45d632f3b
Patch ##1956946 (Audio::Mixer internal API revision) with some tweaks
...
svn-id: r32828
2008-06-28 15:28:29 +00:00
Max Horn
62713a8b1b
Removed OSystem::getFilesystemFactory() default implentation, as announced
...
svn-id: r32824
2008-06-28 14:14:16 +00:00
Filippos Karapetis
0b58aea011
Turned off overzealous warning 4800 - "forcing value to bool 'true' or 'false' (performance warning)"
...
svn-id: r32759
2008-06-22 17:57:06 +00:00
Max Horn
fefad79249
No need to specify CaseSensitiveString_Hash explicitly anymore
...
svn-id: r32663
2008-06-11 06:00:56 +00:00
Max Horn
52747ff694
Re-enabled default Hash<String> template
...
svn-id: r32656
2008-06-10 21:50:07 +00:00
Max Horn
8b56010712
Removed unneeded #include
...
svn-id: r32654
2008-06-10 21:40:53 +00:00
Filippos Karapetis
b050430b41
Don't attempt to close the arj file if it hasn't been opened
...
svn-id: r32608
2008-06-08 02:02:06 +00:00
Eugene Sandulenko
5e666ef774
Patch #1971285 : "Nintendo Wii port"
...
svn-id: r32547
2008-06-04 20:28:20 +00:00
Johannes Schickel
73da6ab51e
- Removed -Wconversion from compiler options for g++ 4.3, it's behavior has fundamently changed in g++ 4.3
...
- Added -Wno-empty-body and -Wno-parentheses as compiler flags for g++ 4.3 for *now* (we should think of removing -Wparentheses though)
- Fixed some warnings for g++ 4.3 (only for the engines I'm using)
svn-id: r32540
2008-06-04 17:20:25 +00:00
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