Max Horn
9034ce2a7c
Fix for bug #1972625 'ALL: On-the-fly targets are written to the config file'
...
svn-id: r33550
2008-08-02 22:32:32 +00:00
Johannes Schickel
342d0bd287
- Added Common::mem_fun_ref for object references instead of pointers.
...
- Added simple tests for a little bit functionallity from common/func.h
svn-id: r33470
2008-07-31 13:36:13 +00:00
Max Horn
278a5fbb57
This time properly reverted my accidental commits of the osystem&configman patch (I didn't mean to commit it in the first place, still waiting for any replies to my corresponding scummvm-devel mail). Sorry for messing up so badly
...
svn-id: r33459
2008-07-30 16:26:38 +00:00
Nicola Mettifogo
55e4eb8d15
Fixed Win32 build, after Fingolfin's commits (probably because of the revert in revision 33456).
...
svn-id: r33458
2008-07-30 16:06:46 +00:00
Max Horn
9e4bc56861
Simplify/optimize/cleanup detectGameFilebased further
...
svn-id: r33457
2008-07-30 15:48:16 +00:00
Max Horn
4632a33087
Revert my accidental commit of the OSystem changes (oops)
...
svn-id: r33456
2008-07-30 15:44:34 +00:00
Max Horn
fbe4f0dd48
Simplified advanced detector file sys scanning code
...
svn-id: r33455
2008-07-30 15:38:42 +00:00
Max Horn
04c05d3ca0
Advanced detector: split out part of detectGame into a new function detectGameFilebased; some cleanup
...
svn-id: r33453
2008-07-30 15:16:57 +00:00
Nicola Mettifogo
aa2ffe047b
Reordered initialization order to kill a ton of warnings.
...
svn-id: r33452
2008-07-30 15:01:15 +00:00
Max Horn
1e2988b7f7
Changed BufferedReadStream to not permanently decrease its buffer size at the end of a stream (this would fail when using BufferedSeekableReadStream and then seeking back from the end); this also fixes a bug which let you seek back beyond the start of a stream (not that we currently support that in other streams)
...
svn-id: r33436
2008-07-30 07:39:41 +00:00
Johannes Schickel
ca8a4eff26
- Formatting
...
- Improved Functor#Mem::isValid implementations.
svn-id: r33427
2008-07-29 20:21:54 +00:00
Johannes Schickel
e3a600b1d0
Little fix for documentation.
...
svn-id: r33426
2008-07-29 20:15:29 +00:00
Johannes Schickel
68f41290a3
Documentation for func.h.
...
svn-id: r33425
2008-07-29 20:09:30 +00:00
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