15401 Commits

Author SHA1 Message Date
Max Horn
c934642bdb COMMON: Move typedef StringList from str.h to new header str-array.h
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.

svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Max Horn
4e99cfc549 Switch from Common::tag2string(foo).c_str() to tag2str(foo)
svn-id: r48276
2010-03-18 15:04:38 +00:00
Arnaud Boutonné
80a8111193 Use resSize instead of computing its value again.
svn-id: r48274
2010-03-17 20:29:26 +00:00
Arnaud Boutonné
072e3806f1 Add detection for Adiboo 2.14. Specify the exact version of a Adi 4.0
svn-id: r48273
2010-03-16 19:59:12 +00:00
Johannes Schickel
1242a4eb8c Some style fixes.
svn-id: r48272
2010-03-16 14:34:25 +00:00
Martin Kiewitz
2624b72513 SCI: fix assert in sound code when fadeout is done (lsl1 bug #2970301)
svn-id: r48271
2010-03-16 14:13:52 +00:00
Travis Howell
b968a69468 Add patch #2970176 - V0: MM Verb + Anim Fix.
svn-id: r48269
2010-03-16 08:59:48 +00:00
Travis Howell
a7e6397fa4 Add patch #2971126 - MM V0: Ed(na) walk fix.
svn-id: r48268
2010-03-16 08:43:46 +00:00
Travis Howell
2035cdbba8 Add patch #2970899 - MM V0: flipped limbs drawing fix.
svn-id: r48267
2010-03-16 08:38:06 +00:00
Paul Gilbert
730405f975 Further code implemented for the current action display
svn-id: r48266
2010-03-16 08:26:08 +00:00
Paul Gilbert
404088f58b Further separation of MADS and M4 scene logic
svn-id: r48257
2010-03-14 05:47:33 +00:00
Paul Gilbert
77c821249e Further work on separating M4 specific scene code into the m4_scene.cpp file
svn-id: r48256
2010-03-14 05:39:47 +00:00
Paul Gilbert
f4bf67cd21 Increased the default Discworld 2 double-click time from 0.33 seconds to 0.55 seconds (from 6 to 10 frames)
svn-id: r48255
2010-03-14 03:40:16 +00:00
Johannes Schickel
40562798d6 Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.

svn-id: r48254
2010-03-13 21:55:49 +00:00
Max Horn
4fc8ebab01 GUI: Remove GuiObject::getMillis()
svn-id: r48241
2010-03-11 23:41:28 +00:00
Sven Hesse
8191092c18 Loading the intro videos tira.imd and tirb.imd as early PreIMD
svn-id: r48235
2010-03-11 06:15:51 +00:00
Sven Hesse
c8d5f21010 Adding support for the early Fascination IMD format
svn-id: r48234
2010-03-11 06:15:23 +00:00
Andrew Kurushin
802ed6eb40 Fix bug #2963556: SAGA: Memory leaks #2
isomap-malloc to Common::Array conversation

svn-id: r48232
2010-03-10 21:44:58 +00:00
Max Horn
05b8c5b9c5 Replace mutex_up/mutex_down methods by Common::StackLock
svn-id: r48231
2010-03-10 21:05:48 +00:00
Max Horn
43abd0e019 cleanup
svn-id: r48230
2010-03-10 21:03:50 +00:00
Max Horn
8d1431a5ab AGOS: cleanup
svn-id: r48227
2010-03-10 20:56:54 +00:00
Johannes Schickel
80fae481b0 Fix a valgrind warning.
It is *not* a good idea to pass a reference to a list entry to List::remove.
Since List::remove will remove *all* occurances of that list entry, it will
also invaldiate the reference, resulting in invalid memory reads after the
entry has been removed from the list, when List::remove will continue to
search the rest of the list for more occurances of the same entry.

svn-id: r48225
2010-03-10 20:33:38 +00:00
Andrew Kurushin
91e7d27468 Fix bug #2963556: SAGA: Memory leaks
svn-id: r48224
2010-03-10 17:05:25 +00:00
Paul Gilbert
ca64698408 Split up the SceneResources class into a generic common set, with specific versions each for M4 and Mads, and merged the MadsSceneInfo data into it
svn-id: r48223
2010-03-10 11:43:48 +00:00
Max Horn
77592b5690 Fix warning
svn-id: r48222
2010-03-10 11:26:27 +00:00
Torbjörn Andersson
65585f6433 Silenced some harmless cppcheck warnings about unreachable code after a return.
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.

svn-id: r48218
2010-03-10 06:39:23 +00:00
Max Horn
fc50408ce3 DRASCULA: Simplify playFLI and its subroutines
svn-id: r48217
2010-03-09 23:36:18 +00:00
Max Horn
c6f752ce30 DRASCULA: Simplified some code, cleanup
svn-id: r48216
2010-03-09 23:35:56 +00:00
Max Horn
da81c58af1 DRASCULA: Some cleanup; turn some global C++ objects into members of DrasculaEngine
svn-id: r48215
2010-03-09 23:35:30 +00:00
Max Horn
bc2b90f43b Workaround for bug #1878514: COMI: Glitch when turning pages in recipe book
svn-id: r48207
2010-03-08 23:36:59 +00:00
Max Horn
38bf3d0d3c SCI: Make EngineState parameter to INV_SEL explicit
svn-id: r48202
2010-03-08 21:54:07 +00:00
Max Horn
5e8743d0d6 SCI: Made some stuff static
svn-id: r48199
2010-03-08 20:12:17 +00:00
Max Horn
f24cc1c8be Tweak makeVOCDiskStream
* now takes a SeekableReadStream *pointer* like (almost) all other
  audiostream factories
* fix potential memory leak in it
* rename takeOwnershipOfStream to disposeAfterUse for consistency

svn-id: r48184
2010-03-08 10:27:42 +00:00
Travis Howell
0e41ec67d1 Exclude font data tables for The Feeble Files, when AGOS2 games are disabled.
svn-id: r48174
2010-03-07 11:46:03 +00:00
Travis Howell
e7765c983a Add font data for Polish Windows 4CD version of The Feeble Files.
svn-id: r48173
2010-03-07 09:22:19 +00:00
Paul Gilbert
7f57001e17 Split up the scene.cpp file into separate files for M4 and MADS specific scene code and support classes. Also have started adding code for textual display and proper current action display
svn-id: r48172
2010-03-07 05:06:58 +00:00
Arnaud Boutonné
a5a8b6c19f - Reorder detection (floppy, CD, demos).
- Move Gob3CD _doSubtitles initialization to updateConfig().

svn-id: r48171
2010-03-06 22:40:55 +00:00
Arnaud Boutonné
cb71fd7240 Playtoons - Add MD5s specified by scoriae in the forums
svn-id: r48168
2010-03-06 09:46:42 +00:00
Arnaud Boutonné
e011df1f68 Gob3CD - Move subtitle check to initialization
svn-id: r48167
2010-03-06 09:37:03 +00:00
Arnaud Boutonné
e869b5c7e6 Gob3 CD - some texts are skipped in the CD version because they are considered as subtitles. Even if this behavior is also found in the original, it's incorrect. This fixes those texts (see newspaper after death level).
svn-id: r48166
2010-03-06 00:35:27 +00:00
Fabio Battaglia
5cf998eab3 SCI: Add detection entry for Space Quest 5 french found in Space Quest Collector's edition
svn-id: r48165
2010-03-05 23:35:28 +00:00
Arnaud Boutonné
724e9a0ceb Add detection for Playtoons 3 EN, based on Hkz MD5s
svn-id: r48164
2010-03-05 15:52:51 +00:00
Max Horn
902dc6929a Patch #2963270: MM: V0 Verb Give Fix
svn-id: r48163
2010-03-05 00:58:29 +00:00
Johannes Schickel
ef70f6996b Fix another mismatching new[] call (note that this needs to be replaced by malloc, since else MemoryReadStream will try to use free on an new[] allocated block.)
svn-id: r48162
2010-03-04 17:46:18 +00:00
Johannes Schickel
ca6b617e63 Fix mismatching new[]/delete.
svn-id: r48161
2010-03-04 17:24:47 +00:00
Fabio Battaglia
5c93ac4adc cruise: add detection entry for Amiga English US GOLD version
svn-id: r48160
2010-03-04 17:21:59 +00:00
Johannes Schickel
4221460f6d Fix item exchange string in Kyra 1 Amiga (both English and German).
svn-id: r48159
2010-03-04 16:34:27 +00:00
Travis Howell
d204f97beb Fix bug #2961530 - Zak/FM-Towns: Game hangs when using monkey wrench.
svn-id: r48158
2010-03-02 00:18:00 +00:00
Matthew Hoops
8cc157a72d Add detection entry for SQ4 Mac.
svn-id: r48156
2010-02-28 20:22:48 +00:00