Commit Graph

322 Commits

Author SHA1 Message Date
Paul Gilbert
2d7c1e2c71 Corrected the Russian Discworld 1 MD5 values
svn-id: r46704
2009-12-29 08:56:41 +00:00
Paul Gilbert
84569c4792 Added MD5 data for Russian Discworld 1
svn-id: r46667
2009-12-28 06:24:06 +00:00
Max Horn
f692015301 Got rid of ReadStream::ioFailed()
svn-id: r46379
2009-12-15 08:18:57 +00:00
Max Horn
c8873d8492 Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
svn-id: r46316
2009-12-09 18:12:51 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
6b8dd7ab7a COMMON: Remove various variants of the md5_file / md5_file_string funcs; turned the (disabled) MD5 test code into a working unit test
svn-id: r46108
2009-11-23 22:30:22 +00:00
Max Horn
b3c3222c23 TINSEL: cleanup
svn-id: r45787
2009-11-09 22:21:23 +00:00
Max Horn
1497c4120e TINSEL: Mark all functions in dialogs.cpp explicitly as public (=extern) or private (=static)
svn-id: r45785
2009-11-09 22:20:25 +00:00
Max Horn
80b8d0af65 TINSEL: Make some const tables static; move static int priorVolMusic into SetMidiVolume to reduce its scope
svn-id: r45784
2009-11-09 22:19:54 +00:00
Max Horn
10b8741c8b TINSEL: Simplifying PolyTinselProcess
svn-id: r45783
2009-11-09 22:19:21 +00:00
Max Horn
2bb7476a20 TINSEL: Add EnablePointing() & DisablePointing() to pdisplay.h; turn DisablePointing from a coroutine into a plain function
svn-id: r45782
2009-11-09 22:18:25 +00:00
Max Horn
e959ef33e5 TINSEL: Small correction to the previous hotfix for _vm->_config crash
svn-id: r45621
2009-11-02 23:48:21 +00:00
Max Horn
d10fe42416 TINSEL: Fix regression caused by the introduction of _vm->_config; proper fix will be introduced later, when dialogs.cpp gets objectified
svn-id: r45620
2009-11-02 23:42:30 +00:00
Max Horn
26981a5ffc TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame
svn-id: r45618
2009-11-02 21:57:16 +00:00
Max Horn
5cf868b757 TINSEL: Turn config code into a simple C++ class
svn-id: r45617
2009-11-02 21:56:29 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
7d6e96fa80 TINSEL: Formatting cleanup, remove a dead var, tweaked comment to Get/SetNoBlocking
svn-id: r45450
2009-10-27 21:34:43 +00:00
Max Horn
4b681f7ec7 TINSEL: Add some debugging code; fix LockMem() regression
svn-id: r45430
2009-10-27 00:38:41 +00:00
Max Horn
02636c2071 TINSEL: Rename Poly pp to ptp in various places, for consistency; cleanup
svn-id: r45429
2009-10-27 00:38:19 +00:00
Max Horn
79734dbc15 TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics
svn-id: r45428
2009-10-27 00:37:54 +00:00
Max Horn
e07a9b0524 TINSEL: Changed heap manager to use malloc internally
svn-id: r45427
2009-10-27 00:37:23 +00:00
Max Horn
05508d8dcd TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn
5672f353dd TINSEL: Fix warning again
svn-id: r45419
2009-10-26 21:08:15 +00:00
Max Horn
6c1c9eda3a TINSEL: Make MEM_NODE internal to heapmem.cpp
svn-id: r45418
2009-10-26 20:38:34 +00:00
Max Horn
d2e64a350a TINSEL: cleanup
svn-id: r45417
2009-10-26 20:36:44 +00:00
Max Horn
e1de772e72 TINSEL: Fix handling of free memory blocks
svn-id: r45416
2009-10-26 20:35:06 +00:00
Johannes Schickel
692a4b74dc Change assert parameter to match the comment above it.
svn-id: r45415
2009-10-26 20:08:33 +00:00
Torbjörn Andersson
939d8d1a37 Silence GCC warning.
svn-id: r45413
2009-10-26 20:03:07 +00:00
Max Horn
6591010f66 TINSEL: Further untangle memory managment.
* Add new function MemoryNoAlloc
* Make MemoryAlloc private
* Get rid of params to various memory related functions

svn-id: r45409
2009-10-26 16:01:34 +00:00
Max Horn
b9534216ed TINSEL: Remove MemoryHandle(), some unneeded #includes and the return value of MemoryReAlloc()
svn-id: r45408
2009-10-26 16:01:12 +00:00
Max Horn
e963dfbd17 TINSEL: Remove dead stuff from memory managment code, doxygenify some comments
svn-id: r45402
2009-10-26 10:41:28 +00:00
Max Horn
bbe0b81aff TINSEL: Remove DWM_FIXED and add new MemoryAllocFixed() function
svn-id: r45401
2009-10-26 10:41:11 +00:00
Max Horn
9065dca09a TINSEL: cleanup
svn-id: r45400
2009-10-26 10:40:51 +00:00
Max Horn
d19a831d29 TINSEL: Move ExtractActor from scn.* to play.*
svn-id: r45399
2009-10-26 10:40:35 +00:00
Max Horn
240f230c1e TINSEL: Cleanup
svn-id: r45398
2009-10-26 10:40:16 +00:00
Max Horn
a4c27cfe98 TINSEL: Some cleanup to the BMV code
svn-id: r45397
2009-10-26 10:39:51 +00:00
Johannes Schickel
56181a475c Change "=" to ":=" in some module.mk files for consistency.
svn-id: r45364
2009-10-24 21:55:53 +00:00
Max Horn
91ba886e01 TINSEL: Move Common::List instances mouseButtons & keypresses into TinselEngine.
Global C++ objects are not portable, as their constructors / destructors may
never be called.

svn-id: r45283
2009-10-20 19:12:54 +00:00
Max Horn
8870b5dbbf TINSEL: Fix apparent bug (?) in the support for the 5 flags version(s)
svn-id: r45271
2009-10-20 14:07:27 +00:00
Max Horn
774183ddce TINSEL: Make lots of stuff in dialogs.cpp static
svn-id: r45270
2009-10-20 14:06:40 +00:00
Max Horn
00822d5661 TINSEL: Move BMV player code into a new BMVPlayer class
svn-id: r45269
2009-10-20 14:06:17 +00:00
Max Horn
5b514a9bd1 TINSEL: Start cleanup BMV code
svn-id: r45268
2009-10-20 14:05:35 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Max Horn
2e964baeef Some const correctness changes; cleanup
svn-id: r44850
2009-10-09 21:47:33 +00:00
Max Horn
3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Max Horn
42120ed626 Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
2009-10-08 19:41:38 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Paul Gilbert
770cca79d0 Script workaround for partially off-screen text in DW1 GRA
svn-id: r44445
2009-09-28 09:56:05 +00:00
Max Horn
4edecad9db TINSEL: cleanup
svn-id: r44416
2009-09-27 19:23:44 +00:00
Martin Kiewitz
eb24b8e455 FLAC support had a typo in detection, fixed
svn-id: r44379
2009-09-26 16:03:16 +00:00
Filippos Karapetis
7820605450 Oops, DoNextFrame() is supposed to return a value
svn-id: r44315
2009-09-24 17:59:19 +00:00
Filippos Karapetis
a983c88e37 Reverted parts of revisions #44292, #44293, #44295 and #44296, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
3a976bfb6f TINSEL: Fixed some warnings about unreachable code
svn-id: r44295
2009-09-24 09:50:22 +00:00
Johannes Schickel
c50940bbf4 Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
2009-09-23 00:15:00 +00:00
Paul Gilbert
31585ebac0 Added workaround fix for Amazon conversation being cut off in Act 2
svn-id: r44050
2009-09-13 10:58:31 +00:00
Paul Gilbert
6fa68445c4 Removed incorrect German Neon Edition MD5
svn-id: r44023
2009-09-10 11:38:04 +00:00
Fabio Battaglia
f1683ae5fe tinsel: correct mac cd checksums, made on files extracted as raw data
svn-id: r44014
2009-09-08 20:08:29 +00:00
Fabio Battaglia
cbdb0dcdfa Tinsel: added (disabled) Discworld 1 MAC detection entry
svn-id: r44011
2009-09-08 12:14:17 +00:00
Paul Gilbert
bebc76b4d8 Added second German Neon Edition detection entry
svn-id: r44001
2009-09-07 11:07:19 +00:00
Paul Gilbert
97c2a8cb89 Added missing parameter size specifiers for the DW-GRA Palace Guards script fixes
svn-id: r43777
2009-08-28 08:43:30 +00:00
Paul Gilbert
644ba1ceab Bugfix for assert in the DW2 Cartwheel scene
svn-id: r43558
2009-08-20 12:04:31 +00:00
Paul Gilbert
416fb4f309 Corrected comments in the bug workaround list
svn-id: r43529
2009-08-19 08:24:40 +00:00
Johannes Schickel
b33b90ecd0 Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
svn-id: r43512
2009-08-18 15:31:26 +00:00
Paul Gilbert
c368f60a1d Fix for some more !!HIGH STRINGS!! when talking to the palace guards
svn-id: r43468
2009-08-17 11:36:09 +00:00
Torbjörn Andersson
762d2dc03a Removed unnecessary semi-colons.
svn-id: r43409
2009-08-15 14:13:48 +00:00
Joost Peters
a68b033a53 Fix incorrect memset() call (reported by Peter Bortas).
svn-id: r43375
2009-08-14 16:44:29 +00:00
Paul Gilbert
5dbd11abad Changed subtitles display speed to also include the time taken to say voice samples (if voices are turned on). This means subtitles will display for the same time irrespective of whether voices are on or not
svn-id: r43150
2009-08-09 01:05:47 +00:00
Johannes Schickel
d14c0fd886 Change workaround for bug #2820054 to apply for all GRA versions.
svn-id: r43123
2009-08-08 12:22:34 +00:00
Johannes Schickel
462d6dc65c Formatting fix.
svn-id: r43122
2009-08-08 12:00:34 +00:00
Johannes Schickel
d593c03c1a Fix for bug #2412336 "DW2: Voices cut off" (commit on behalf of dreammaster)
svn-id: r43120
2009-08-08 11:51:15 +00:00
Johannes Schickel
19c27b04b6 Add workaround for bug #2820054 "DW1: No intro music at first start on Wii", which actually happened on all systems, when using the multilanguage version.
svn-id: r43119
2009-08-08 11:42:29 +00:00
Paul Gilbert
3e2ee197f1 Commit of dhewg's patch to fix screen refreshes on the Wii
svn-id: r43112
2009-08-08 09:34:23 +00:00
Paul Gilbert
c9ef2d9809 Bugfix for #2831159 - Palace guards saying !!HIGH STRING!!
svn-id: r43093
2009-08-07 09:25:06 +00:00
Paul Gilbert
26b372603b Bugfix for music not being stopped when music volume is set to zero
svn-id: r43066
2009-08-05 10:44:37 +00:00
Joost Peters
0ef0365db5 Make MemoryReAlloc() 64-bit alignment safe
svn-id: r43013
2009-08-02 21:44:21 +00:00
Joost Peters
7d3f68154f align memory handles to sizeof(void*) instead of 4 (which is just good enough for 32-bit) - this fixes DW2 on 64-bit systems that require alignment
svn-id: r43005
2009-08-02 17:58:48 +00:00
Torbjörn Andersson
836c9a37f3 Show a message if saving or loading a game fails.
svn-id: r42999
2009-08-02 12:49:57 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Paul Gilbert
b40dc424b3 Bugfix for hangs on scene changes in Discworld 1 after having loaded a savegame from the GMM when the title screens are displayed
svn-id: r42626
2009-07-20 09:19:27 +00:00
Paul Gilbert
6e5063aed2 Added the GUIO_NOSFX and GUIO_NOMUSIC flags to the first Discworld 1 demo entry
svn-id: r42611
2009-07-19 12:52:19 +00:00
Torbjörn Andersson
ff75d68f1c Fixed GCC warning.
svn-id: r42536
2009-07-16 17:26:44 +00:00
Paul Gilbert
19e8b39249 Prior script fix also fixes bug #2820788, with stealing wizard's mallets
svn-id: r42528
2009-07-16 09:53:19 +00:00
Paul Gilbert
f01bd0e9a3 Added game script fix for bug #2680397 - game hang when using the brochure on the Beekeeper
svn-id: r42527
2009-07-16 09:31:31 +00:00
Paul Gilbert
b04e3e7940 Added no blocking fix for Present Outside Inn scene as well
svn-id: r42522
2009-07-16 04:06:35 +00:00
Paul Gilbert
aeb2aa6630 Game script fix for bug #2525010 - in the GRA version, the luggage blocked Rincewind's exit from the Inn, leaving him in a non-walkable area
svn-id: r42521
2009-07-16 02:27:26 +00:00
Paul Gilbert
544bf83f33 Created a system for inserting arbitrary code fragments into game scripts, and added an initial fragment to fix the bug of being stuck in the past in the DW1 SCN version
svn-id: r42500
2009-07-15 08:55:12 +00:00
Max Horn
dbf968b49e TINSEL: Don't use ioFailed to check if a file was opened succesfuly
svn-id: r42468
2009-07-14 08:36:06 +00:00
Paul Gilbert
6bf91ab66f Bugfix to properly save the currently playing midi music when saving a scene
svn-id: r42377
2009-07-11 08:16:55 +00:00
Fabio Battaglia
1f24fe43a2 tinsel: proper detection entry for Discworld 1 Italian only CD
svn-id: r42356
2009-07-10 22:13:27 +00:00
Sven Hesse
341d875cea Added support for compressed sample files (patch #2815426 by m_kiewitz)
svn-id: r42020
2009-07-02 12:15:04 +00:00
Max Horn
a6b57dc3a9 - Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
2009-07-01 20:51:04 +00:00
Fabio Battaglia
cf3eab927b tinsel: added some comments to psx palette mapper
svn-id: r41806
2009-06-23 13:24:46 +00:00
Johannes Schickel
4aec580f91 Formatting.
svn-id: r41588
2009-06-16 19:26:44 +00:00
Fabio Battaglia
b905602b4c tinsel: check only english.txt for DW1 psx version detection, and use recursive "SearchMan.addDirectory()" to obtain subdirs for Discworld PSX datafiles
svn-id: r41587
2009-06-16 18:58:21 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Johannes Schickel
626765b71a Fix warning about signed vs. unsigned comparison.
svn-id: r41143
2009-06-03 16:28:09 +00:00
Fabio Battaglia
ee04870cc2 tinsel: fixed endianess issue in psx palette remapper
svn-id: r41142
2009-06-03 16:15:17 +00:00
Fabio Battaglia
dcbc6e7e69 tinsel: removed some warnings related to psx code and cleanup of psx palette remapper function
svn-id: r41138
2009-06-03 14:03:05 +00:00
Fabio Battaglia
be22438648 tinsel: workaround for "missing red dragon in Act IV" bug in Discworld PSX
svn-id: r41068
2009-05-31 14:41:54 +00:00