Commit Graph

723 Commits

Author SHA1 Message Date
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
D G Turner
214f93e6aa MOHAWK: Add Default Values to LB NotifyEvent Constructor.
This silences a number of warnings about possible uninitialized
parameter use.
2011-04-11 23:21:46 +01:00
Matthew Hoops
3769f30529 MOHAWK: Add more versions of LB demos
From bug #3275626
2011-04-11 16:52:01 -04:00
md5
d2d6c9e2ba MOHAWK: Silenced an MSVC waning about an uninitialized var (false positive) 2011-04-10 14:27:45 +03:00
Alyssa Milburn
ae49865e9e MOHAWK: Move per-page data into LBPage. 2011-04-09 21:01:27 +02:00
Alyssa Milburn
f0c42f10bd MOHAWK: Implement LBCode logical operators. 2011-04-08 00:22:04 +02:00
Matthew Hoops
b6a4d3e391 MOHAWK: Detect CarmenTQ's Custom Question Creator
(Same LB version as the main game)
2011-04-07 18:18:10 -04:00
Alyssa Milburn
10454194bc MOHAWK: Implement some LBCode rect commands. 2011-04-07 23:08:55 +02:00
Alyssa Milburn
ac1522e177 MOHAWK: Implement some more LBCode ops. 2011-04-07 23:07:04 +02:00
Alyssa Milburn
f65840feef MOHAWK: Add some more LBValue helpers. 2011-04-07 23:05:22 +02:00
Alyssa Milburn
be09bef7f7 MOHAWK: Add getItemByName for LB. 2011-04-07 23:03:54 +02:00
Matthew Hoops
5fad3d5362 MOHAWK: Implement the quit notify LBCode command 2011-04-07 10:00:11 -04:00
Alyssa Milburn
40dd4f89ba MOHAWK: Support LB script flow control. 2011-04-07 00:33:11 +02:00
Alyssa Milburn
bbe2c437a8 MOHAWK: Replace most of the LBCode interpreter. 2011-04-07 00:30:09 +02:00
Alyssa Milburn
3bbeee90c0 MOHAWK: Handle alignment byte for some targeting modes. 2011-04-07 00:26:27 +02:00
Alyssa Milburn
71bfe714c1 MOHAWK: Fix issues with LB's hardcoded UI logic. 2011-04-02 19:21:03 +02:00
Matthew Hoops
fdb01b0ea9 MOHAWK: Minor grammar fix 2011-04-02 11:09:22 -04:00
Matthew Hoops
e7165a23b4 MOHAWK: Fix title of Arthur's Teacher Trouble 2011-04-02 11:08:05 -04:00
Alyssa Milburn
1f543652b7 MOHAWK: Handle waiting for sound cues in LBAnimation. 2011-04-01 14:44:41 +02:00
Alyssa Milburn
759040d679 MOHAWK: Add/update some LB debug/warning stuff. 2011-03-31 22:39:46 +02:00
Alyssa Milburn
ab97a5e493 MOHAWK: Tweaks to LBAnimationItem::setEnabled. 2011-03-31 22:39:17 +02:00
Alyssa Milburn
73c15cebe8 MOHAWK: Update LBAnimationItem running state when anim is done. 2011-03-31 22:38:32 +02:00
Alyssa Milburn
66269fa208 MOHAWK: Toggle the post-intro LB menu anim at the right time. 2011-03-31 22:35:40 +02:00
Matthew Hoops
84c45eae37 MOHAWK: Use ScummVM GUI fonts for the cstime demo
The demo is now playable without using fonts from the full game
2011-03-31 15:54:21 -04:00
Alyssa Milburn
e705759b7b MOHAWK: Implement kLBSetHitTest. 2011-03-31 01:16:47 +02:00
Alyssa Milburn
e5533401dc MOHAWK: Nicer names/info for some LB data. 2011-03-31 00:18:00 +02:00
Alyssa Milburn
023cb90842 MOHAWK: Strip slashes from beginning of LB Windows paths. 2011-03-30 21:41:13 +02:00
Alyssa Milburn
3a4fc2f0d6 MOHAWK: Parse LB page options from the outline. 2011-03-30 21:06:12 +02:00
Matthew Hoops
00d01d9b00 MOHAWK: Add detection for Just Grandma and Me 2.0 2011-03-30 14:42:34 -04:00
Alyssa Milburn
db812c985c MOHAWK: Use tryLoadPageStart where needed in LB. 2011-03-30 17:35:02 +02:00
Alyssa Milburn
046a34bd42 MOHAWK: Add LB detection entries from pacifist.
This adds entries for Harry and the Haunted House, Ruff's Bone,
Stellaluna, and Sheila Rae, the Brave.
2011-03-29 23:55:25 +02:00
Alyssa Milburn
01b7a2c774 MOHAWK: Check isAmbient in LB sound priority code. 2011-03-29 21:19:46 +02:00
Alyssa Milburn
feefced3ce MOHAWK: Add Sound::isPlaying() function. 2011-03-29 21:18:55 +02:00
Alyssa Milburn
fe613524e5 MOHAWK: Looks like LBAnimation ignores sound priorities after all. 2011-03-29 20:22:25 +02:00
Alyssa Milburn
ff9f08aa41 MOHAWK: Only stop the last-played sound in LB's playSound.
This might need a version check, but seems to be fine without.
2011-03-29 20:22:25 +02:00
Alyssa Milburn
1557890b7a MOHAWK: Stop playing LB anim sounds on seek(). 2011-03-29 19:33:03 +02:00
Alyssa Milburn
04cb669ff3 MOHAWK: Fix priority check in LB's lockSound(). 2011-03-29 16:49:42 +02:00
Alyssa Milburn
bcc0adb8fa MOHAWK: Handle LB item sound priorities. 2011-03-29 16:28:24 +02:00
Alyssa Milburn
bd526aac1d MOHAWK: Destroying an LBGroupItem destroys the whole group. 2011-03-29 15:09:15 +02:00
Alyssa Milburn
ad7b6f6817 MOHAWK: Don't fail to delete consecutive items. 2011-03-29 15:08:21 +02:00
Alyssa Milburn
9bf0800032 MOHAWK: Fix LB debug message to use the right name. 2011-03-29 15:07:45 +02:00
Alyssa Milburn
86fcca5a87 MOHAWK: comment text after #endif 2011-03-29 15:06:46 +02:00
Matthew Hoops
4b19c1bf32 MOHAWK: Don't compile RivenOptionsDialog when Riven isn't enabled 2011-03-28 23:41:32 -04:00
Matthew Hoops
b101fd6f03 MOHAWK: Allow disabling of Riven compilation 2011-03-28 22:26:23 -04:00
Matthew Hoops
4a7572d893 MOHAWK: Allow disabling compiling cstime 2011-03-28 22:26:23 -04:00
Matthew Hoops
e5811cd6c3 MOHAWK: Allow disabling compilation of Myst 2011-03-28 22:26:23 -04:00
Matthew Hoops
def47fd874 MOHAWK: Correct title of Dr. Seuss's ABC 2011-03-27 11:44:02 -04:00
Matthew Hoops
5af474ec7c MOHAWK: Stub off LB mini games
greeneggs can now continue to completion in 'play' mode
2011-03-26 11:09:07 -04:00
Matthew Hoops
4235358fad MOHAWK: Use direct access on the hashmap for Riven variables now 2011-03-23 23:14:59 -04:00
Matthew Hoops
b3e27bc0d6 MOHAWK: Make Riven's save/load code use the variable map directly 2011-03-23 21:45:39 -04:00
Matthew Hoops
aaf05b2a59 MOHAWK: Begin using a hashmap to store Riven variables 2011-03-23 21:33:57 -04:00
Matthew Hoops
50a35193c9 MOHAWK: Remove 'old' from the LB v1 sound function too 2011-03-22 21:16:27 -04:00
Matthew Hoops
bc1c84e6c8 MOHAWK: Rename OldMohawkBitmap to LivingBooksBitmap_v1
'Old' is very ambiguous ;)
2011-03-22 21:13:54 -04:00
Matthew Hoops
e82e5e32ff MOHAWK: Begin to implement Riven opcode 38
Also, renamed it to better reflect its purpose
2011-03-22 20:33:38 -04:00
Matthew Hoops
1ca6781859 MOHAWK: Minor cursor call cleanup 2011-03-22 20:13:01 -04:00
Matthew Hoops
4d6c020cf4 MOHAWK: Remove the Riven 'restart' console command
This ancient console function has no purpose any longer and is half-broken anyway.
2011-03-22 20:04:46 -04:00
Matthew Hoops
a730d30f0c MOHAWK: Cleanup installer handling 2011-03-22 19:54:59 -04:00
Matthew Hoops
f40b74d496 MOHAWK: Handle launcher load fails more gracefully 2011-03-22 19:54:58 -04:00
Matthew Hoops
2053936959 MOHAWK: Ignore other 'time' variables when loading saves too 2011-03-22 14:27:32 -04:00
Matthew Hoops
d91c33ca26 MOHAWK: Implement xrwindowsetup 2011-03-22 14:11:24 -04:00
Matthew Hoops
273ba73d5f MOHAWK: Minor cleanup and consistency fixes 2011-03-21 18:33:48 -04:00
Matthew Hoops
6b80d25f6e MOHAWK: Implement the prison viewer 2011-03-21 18:28:02 -04:00
Matthew Hoops
cdc4c3bfa8 MOHAWK: Add a getDuration() function to the VideoManager 2011-03-21 18:27:49 -04:00
Matthew Hoops
40c496d730 MOHAWK: Implement the hardcoded Catherine idle videos 2011-03-21 13:21:47 -04:00
Matthew Hoops
cb948934ab MOHAWK: Add workaround for loading the bytramtime variable 2011-03-21 12:15:14 -04:00
Matthew Hoops
54ac6ade49 MOHAWK: Don't error out when the ReturnStackID cannot be converted 2011-03-21 12:15:14 -04:00
Matthew Hoops
96c7f0d22d MOHAWK: Implement the Ytram trap 2011-03-20 16:13:53 -04:00
D G Turner
63a710dfbc MOHAWK: Removed now unused Myst Variables Storage Class. 2011-03-19 23:25:05 +00:00
dhewg
3dd2e0c3f6 MOHAWK: Cleanup volume levels initialization 2011-03-19 16:04:54 +01:00
md5
be3ca52168 MOHAWK: Changed usage of PI to M_PI (normally defined in math.h) 2011-03-19 02:32:19 +02:00
Alyssa Milburn
6c2bf87dbd MOHAWK: Warn only when anims reference named sound files. 2011-03-16 16:27:20 +01:00
Alyssa Milburn
ba606e3693 MOHAWK: Don't warn about odd LB version record sizes. 2011-03-11 19:15:56 +01:00
Alyssa Milburn
5acac402af MOHAWK: Seek to first frame on kLBOpRewind.
This might need some further thought when implementing more complex
seeking for the later games, but works for now.
2011-03-11 19:15:56 +01:00
Alyssa Milburn
f814108d85 MOHAWK: Fix intro finish notify in LB poetry mode. 2011-03-11 14:19:57 +01:00
Matthew Hoops
6fd6291390 MOHAWK: Fix typo in the Riven missing executable dialog 2011-03-09 17:53:11 -05:00
Matthew Hoops
0d271324db MOHAWK: Remove outdated TODO 2011-03-09 14:11:28 -05:00
Matthew Hoops
8de370e847 MOHAWK: Correct start times for Riven credits 2011-03-09 14:10:47 -05:00
Matthew Hoops
8743838f47 MOHAWK: Add initial support for the Riven credits sequence
The credits start too early for a few of the end game sequences, but otherwise works well (minus missing fade support, but that is throughout the game anyway).
2011-03-09 13:59:30 -05:00
Alyssa Milburn
2a064a9725 MOHAWK: Rename variable to fix WinCE build.
Thanks to LordHoto for working out why this was failing.
2011-03-08 15:45:52 +01:00
Matthew Hoops
920bae62c0 MOHAWK: Fix Riven's cursor in the main menu
Actually call the showCursor() function now...
2011-03-07 17:28:19 -05:00
Matthew Hoops
e815102659 Merge branch 'pe_exe' of https://github.com/clone2727/scummvm into clone2727-pe_exe 2011-03-07 17:07:59 -05:00
Matthew Hoops
212b58ad42 MOHAWK: Remove unused runLoadDialog() function 2011-03-07 16:28:28 -05:00
Matthew Hoops
9c7166ccc9 MOHAWK: Error message consistency 2011-03-07 11:02:50 -05:00
Matthew Hoops
10dad00a79 MOHAWK: Improve error handling when data isn't found 2011-03-07 11:00:41 -05:00
Matthew Hoops
ad7400524b MOHAWK: Make Riven use original executables for cursors
It will try both Windows and Macintosh executables. The hardcoded cursors have been removed.
2011-03-07 01:10:01 -05:00
Bastien Bouclet
7d506ef853 MOHAWK: Implement Mechanical opcode 122, elevator go down timer 2011-03-05 18:33:22 +01:00
Matthew Hoops
c66233f83e GRAPHICS: Split the NE cursor code from the NEResources class
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
D G Turner
f78f2dff49 MOHAWK: Correction for uninitialized read in Myst Cabin Door State. 2011-02-26 10:18:36 +00:00
Matthew Hoops
e053373dd3 COMMON: Add a key color field to NECursor 2011-02-22 20:11:50 -05:00
Matthew Hoops
a2a0b13de2 COMMON: Begin to merge some NE/PE code
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Bastien Bouclet
285d33d9c2 MOHAWK: Implement Mechanical elevator top movie 2011-02-22 20:38:55 +01:00
Bastien Bouclet
e507115405 MOHAWK: Implement Mechanical elevator movies 2011-02-22 20:38:54 +01:00
Bastien Bouclet
bc39d327ac MOHAWK: Implement Mechanical elevator rotation 2011-02-22 20:38:54 +01:00
Alyssa Milburn
0fe3ecd6d7 MOHAWK: Don't display LiveText phrases too early. 2011-02-20 13:46:13 +01:00
Alyssa Milburn
42ec234a1f MOHAWK: Make LBLiveTextItem call done() when finished. 2011-02-20 13:46:12 +01:00
Alyssa Milburn
00f85fb580 MOHAWK: Fix kLBAutoSync notifies. 2011-02-20 13:45:34 +01:00
Alyssa Milburn
9fa6b48e1a MOHAWK: A zero matchFrom matches everything. 2011-02-20 13:45:33 +01:00
Alyssa Milburn
805acaa81e MOHAWK: Ignore out-of-bounds LB words. 2011-02-20 12:45:15 +01:00
Alyssa Milburn
417dd6314b MOHAWK: Fix LB palettes which don't start at 0.
(Thanks to LordHoto for pointing out this was crazy.)
2011-02-20 12:36:21 +01:00
strangerke
98cd1b6e0c MOHAWK: Add detection strings for Harry and the Haunted House 2011-02-20 11:54:45 +01:00