Commit Graph

59539 Commits

Author SHA1 Message Date
Eugene Sandulenko
d613fae592 DIRECTOR: Do not allow 0 frame rates 2019-12-29 14:15:08 +01:00
Eugene Sandulenko
a3468d20e8 DIRECTOR: LINGO: Normalise parameters before usage in setTheCast() 2019-12-29 01:13:21 +01:00
Eugene Sandulenko
7d0390bdbf DIRECTOR: LINGO: Implement 'set the text of cast' 2019-12-29 01:11:12 +01:00
Eugene Sandulenko
00b7f1d7aa DIRECTOR: LINGO: Fix cast references in setTheCast() 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
53a2ca9c5e DIRECTOR: LINGO: Added test for 'global' 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
4421073893 DIRECTOR: LINGO: Code simplificaiton in Lingo::setTheCast() 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
35e9a95757 DIRECTOR: LINGO: Implement 'the stilldown' 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
cd7da28a97 DIRECTOR: Track when mouse is down 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
cb497e3620 DIRECTOR: LINGO: Added 'set... of the cast' processing 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
d1cd2f5126 DIRECTOR: LINGO: Fix behaviour of global variables 2019-12-29 00:51:16 +01:00
Eugene Sandulenko
ecaebf7ced DIRECTOR: LINGO: Print variable lists as an extra debug step 2019-12-29 00:51:16 +01:00
sluicebox
6ab1d6ac7b SCI32: Fix GK2 broken messages 2019-12-28 14:47:49 -08:00
sluicebox
ff855fe99c SCI32: Fix SQ6 duplicate points 2019-12-28 13:44:00 -08:00
sluicebox
552dc1321f SCI32: Fix SQ6 missing points
Fixes bug #11275
2019-12-28 13:44:00 -08:00
sluicebox
2691df04a7 SCI32: Update GK2 workaround for Italian version 2019-12-28 13:37:51 -08:00
Filippos Karapetis
0ae3cbc2e8 STARTREK: Reduce usage of SharedPtr, and simplify bitmap related calls 2019-12-28 13:22:18 +02:00
Eugene Sandulenko
25a268bf31 DIRECTOR: Properly implement sprite pattern setting 2019-12-27 23:10:38 +01:00
Eugene Sandulenko
eb02162def DIRECTOR: LINGO: Added manipulation of sprite patterns.
TODO: Figure out where in data it is stored.
2019-12-27 22:43:42 +01:00
Eugene Sandulenko
77adfd762e SCI: Removed unneeded debug output. The bug has been confirmed fixed 2019-12-27 19:49:37 +01:00
Eugene Sandulenko
11d3baad4e DIRECTOR: Improved debug output 2019-12-27 16:40:25 +01:00
Eugene Sandulenko
90f0a6db77 DIRECTOR: Clip to scene dimensions all Ink-based rendering 2019-12-27 16:24:57 +01:00
Filippos Karapetis
da9bd9a102 STARTREK: Simplify setBackgroundImage() 2019-12-27 16:54:58 +02:00
Filippos Karapetis
9ebb737a06 STARTREK: Simplify the BAN (misc animations) code 2019-12-27 16:54:57 +02:00
Filippos Karapetis
454149c49d STARTREK: Reduce usage of SharedPtr 2019-12-27 16:54:57 +02:00
Filippos Karapetis
14a07a4871 STARTREK: Use a 32-bit integer for the file offset 2019-12-27 16:54:56 +02:00
Eugene Sandulenko
936fe12086 DIRECTOR: Shuffle code around 2019-12-27 13:39:56 +01:00
Eugene Sandulenko
a9f8af5400 DIRECTOR: Clip Matte sprites properly 2019-12-27 13:39:56 +01:00
Eugene Sandulenko
38c488f2ca DIRECTOR: More debug output 2019-12-27 13:39:56 +01:00
Eugene Sandulenko
6e4ba1e5c5 DIRECTOR: Improved debug output, some renames 2019-12-27 13:39:56 +01:00
aviloria
dccae5f7f1 WINTERMUTE: Solve 'Chinese' language conflicts. Add more game entries (#1969) 2019-12-27 01:39:38 +02:00
Filippos Karapetis
f7a5c21d4d STARTREK: Move isPointInPolygon() inside the Room class
This accesses the room data, so it's better to move it inside the Room
class, to reduce direct visibility of the room vertex data
2019-12-27 01:33:28 +02:00
Filippos Karapetis
26fcce1e41 STARTREK: Fix texts in the MUDD mission 2019-12-27 01:33:27 +02:00
Eugene Sandulenko
ba834b6289 DIRECTOR: Fix label loading 2019-12-26 17:30:28 +01:00
Eugene Sandulenko
32c96f6373 DIRECTOR: Fix number of labels to read 2019-12-26 17:15:18 +01:00
Eugene Sandulenko
fb122a9e20 DIRECTOR: Fix index type 2019-12-26 17:04:02 +01:00
Eugene Sandulenko
df5a4fb027 SCI: Swap lowercase Alt+'a'/'s' for Polish, in order to avoid conflicting keybingings 2019-12-26 15:51:22 +01:00
Eugene Sandulenko
a2cbc18d61 SCI: Fix lowercase Alt+'n' for Polish 2019-12-26 15:40:54 +01:00
Eugene Sandulenko
c88da94585 SCI: Added support for typing Polish characters with 'Alt' 2019-12-26 15:10:07 +01:00
Eugene Sandulenko
46dbffe609 DIRECTOR: Renamed few variables 2019-12-26 00:55:32 +01:00
Eugene Sandulenko
ac2b6af639 SCI: Added temporary debug ouput for Polish input 2019-12-25 23:38:23 +01:00
Eugene Sandulenko
def628acae DIRECTOR: Imporved text cast loading 2019-12-25 22:55:25 +01:00
Eugene Sandulenko
74dbb60931 DIRECTOR: More loading debug output 2019-12-25 22:32:39 +01:00
Eugene Sandulenko
df3d87062e DIRECTOR: Temporarily revert the ink selection for QuickDraw shapes 2019-12-25 18:05:33 +01:00
Eugene Sandulenko
a61bca2075 DIRECTOR: Added drawing for QuickDraw cast members 2019-12-25 18:05:33 +01:00
Eugene Sandulenko
902a750c8a DIRECTOR: Implemented 'fast' playback debug flag 2019-12-25 18:05:33 +01:00
Eugene Sandulenko
197bc17216 DIRECTOR: Correctly use ink information for sprites 2019-12-25 14:52:13 +01:00
Eugene Sandulenko
3f392ca564 DIRECTOR: Loop movies by default, added 'noloop' debug flag 2019-12-25 14:26:11 +01:00
Eugene Sandulenko
3e296bc31b SCI: Reformatted the conversion table 2019-12-25 14:05:02 +01:00
D G Turner
fa5c023a1f KYRA: Remove GCC -Wlogical-op Compiler Warning
This piece of code is not functional as the test will always evaluate
to false so hiding this with a preprocessor guard will not cause any
functional change. It is now clearly marked with FIXME and TODO along
with a comment for future reference.
2019-12-25 12:38:26 +00:00
Eugene Sandulenko
f491a2562c SCI: Added detection and support for Polish LSL7
Fixes bug #11274
2019-12-25 13:24:36 +01:00
Bastien Bouclet
f328ab4369 WINTERMUTE: Fix fallback detection
Now the singleId property has been removed, the gameIds returned by the
MetaEngines when detecting games must be accepted by the `findGame`
method. Wintermute was generating gameIds based on datafiles in the
fallback detector. With this change, the gameId for fallback detected
games is always `wintermute`, the target name is generated based on the
`extra` value that contains the game caption.

The `(unknown)` mention that was previously added to the game title has
been removed. The unknown game dialog now makes it very clear that the
game version is not known to ScummVM.

Fixes #11288.
2019-12-25 08:50:01 +02:00
Eugene Sandulenko
d5687eb222 DIRECTOR: Simplify palette transformations 2019-12-25 02:12:55 +01:00
Eugene Sandulenko
85b67d8771 DIRECTOR: Added palette transformation routine 2019-12-25 02:00:17 +01:00
Eugene Sandulenko
1cf7fd9196 DIRECTOR: Added test routine for drawing palette 2019-12-25 01:50:30 +01:00
Eugene Sandulenko
8c59f07951 DIRECTOR: Replace palette data with hex numbers 2019-12-25 01:35:04 +01:00
Eugene Sandulenko
160cbe30c7 DIRECTOR: Bg color is also shifted for shapes 2019-12-25 01:12:14 +01:00
Eugene Sandulenko
b5f7f6d35e DIRECTOR: Use colors for QuickDraw sprites from Channel Info 2019-12-25 01:10:32 +01:00
Eugene Sandulenko
e5f3febb1a DIRECTOR: Read color information for shapes 2019-12-25 01:00:02 +01:00
Eugene Sandulenko
c898b7eaae DIRECTOR: Improved loading debug output 2019-12-25 00:07:54 +01:00
Eugene Sandulenko
578d013e9c DIRECTOR: More debug output and code tidying up 2019-12-24 22:47:06 +01:00
Eugene Sandulenko
cdcce73ff8 DIRECTOR: Improved debug output 2019-12-24 21:39:14 +01:00
Eugene Sandulenko
13c086cf88 DIRECTOR: Enlist shape types 2019-12-24 21:39:14 +01:00
Eugene Sandulenko
b5d64e8bbf DIRECTOR: Improve debug output 2019-12-24 21:39:14 +01:00
sluicebox
43e74a8657 SCI32: Add GK2 Italian detection entry
Trac #11013
2019-12-24 11:00:54 -08:00
Eugene Sandulenko
cb95bb4dec DIRECTOR: Remove redundant code 2019-12-24 18:22:43 +01:00
Eugene Sandulenko
00f5d3fcdb DIRECTOR: Process non-BW bitmaps for D3 2019-12-24 18:18:04 +01:00
Eugene Sandulenko
e3f2226550 DIRECTOR: Support for arbitrary cast resrouce offsets 2019-12-24 17:35:30 +01:00
Eugene Sandulenko
3b6d582988 DIRECTOR: LINGO: Add test for 'when' statements with 'if' 2019-12-24 15:37:44 +01:00
Eugene Sandulenko
fe90e63d26 DIRECTOR: LINGO: Restrict oneline statements with 'if' only to 'when' 2019-12-24 15:37:21 +01:00
Eugene Sandulenko
1f03acd5bb DIRECTOR: LINGO: Added preprocessing for 'when' statements with 'if' 2019-12-24 15:32:36 +01:00
Eugene Sandulenko
e71ebaae8f DIRECTOR: LINGO: onle line statement can contain one line ifs 2019-12-24 15:32:14 +01:00
Eugene Sandulenko
a326ee192d DIRECTOR: Properly set moveable flag for sprites on loading 2019-12-24 14:08:16 +01:00
Eugene Sandulenko
1f5b4bdf74 DIRECTOR: Improve debug output 2019-12-24 14:08:16 +01:00
Eugene Sandulenko
48a6bb4daa DIRECTOR: LINGO: Force end line at the scripts 2019-12-24 14:08:16 +01:00
D G Turner
5dc1cb2fca SAGA: Fix Memset on Non Trivial Structure Compiler Warnings
These are emitted from GCC when -Wclass-memaccess is enabled.
2019-12-24 09:03:14 +00:00
Eugene Sandulenko
3d49d03ca7 DIRECTOR: LINGO: Fix clash with isspecial(3) 2019-12-24 00:42:30 +01:00
Eugene Sandulenko
1e6ec8f3ac DIRECTOR: Finish work on reducing header dependency 2019-12-24 00:42:30 +01:00
Cameron Cawley
2be6820d70 LURE: Fix crash in detection code when compiling with TTS enabled 2019-12-23 23:33:33 +00:00
Eugene Sandulenko
cf7b86ceb9 DIRECTOR: Furhter work on header dependency decrease 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
121e42b88d DIRECTOR: More work on reducing header dependency 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
b21b29a2f6 DIRECTOR: Further simplification of include dependencies 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
649e7a0c28 DIRECTOR: Decreased header dependency 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
b022b8ad76 DIRECTOR: Split out Lingo preprocessor code into a separate file 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
6ff4e96d58 DIRECTOR: LINGO: Added another test for 'return' constant 2019-12-24 00:19:27 +01:00
Eugene Sandulenko
701d74fc31 DIRECTOR: LINGO: Added another use case for 'return' constant 2019-12-24 00:19:26 +01:00
Eugene Sandulenko
a203a5b0d5 DIRECTOR: LINGO: Added test for 'return' constant 2019-12-24 00:19:26 +01:00
Eugene Sandulenko
53f82149ae DIRECTOR: LINGO: Replace \r with \n in return constant. 2019-12-24 00:19:26 +01:00
Eugene Sandulenko
15c5d33b88 DIRECTOR: LINGO: Preprocess 'return' constant so it compiles 2019-12-24 00:19:26 +01:00
Thierry Crozat
ca781b7389 BLADERUNNER: Use virtual keyboard feature in save screen
This is used on platforms that have a virtual keyboard, such
as iOS, to show/hide the virtual keyboard when we expect text
input.
2019-12-23 18:06:50 +01:00
Eugene Sandulenko
0b6ab63586 DIRECTOR: LINGO: Added tests for new grammar 2019-12-23 13:14:54 +01:00
Eugene Sandulenko
b2ce2231a1 DIRECTOR: LINGO: Fix regression in 'go' keyword grammar 2019-12-23 13:14:54 +01:00
Eugene Sandulenko
e0340374c8 DIRECTOR: LINGO: Fix ENDCLAUSE lexer regexp 2019-12-23 13:14:54 +01:00
Eugene Sandulenko
3e835a9e2a DIRECTOR: LINGO: Simplified grammar for 'go' keyword 2019-12-23 13:14:54 +01:00
D G Turner
59b639ed4d SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-23 11:56:16 +00:00
D G Turner
d5808d2903 DIRECTOR: Fix Signed vs. Unsigned Compiler Warnings 2019-12-23 10:29:30 +00:00
Scott Percival
e943f8c291 DIRECTOR: LINGO: Fix string constants, make constant pushing inline 2019-12-23 08:58:14 +08:00
Scott Percival
d1347b0ce1 DIRECTOR: LINGO: Add define() support for bytecode 2019-12-23 08:58:14 +08:00
Scott Percival
48499ac10a DIRECTOR: Fix _nextFrame from getting clobbered by exitFrame events 2019-12-23 08:58:14 +08:00
Scott Percival
9bbacd0539 DIRECTOR: LINGO: String equality is case insensitive 2019-12-23 08:58:14 +08:00
Scott Percival
afea378714 DIRECTOR: LINGO: Add string support to c_eq and c_neq 2019-12-23 08:58:14 +08:00
Scott Percival
1c13d5d605 DIRECTOR: Load compiled Lingo scripts based on cast id 2019-12-23 08:58:14 +08:00
Scott Percival
86a3581847 DIRECTOR: Add intial loader for Lctx blocks 2019-12-23 08:58:14 +08:00
athrxx
3ca1b8aac2 KYRA: (EOB) - fix possible invalid mem access
(this could happen if you create a new character, then immediately delete it, then return to the main menu via Esc and then load a save file)
2019-12-22 22:15:42 +01:00
Roland van Laar
e11311e9b6 DIRECTOR: Add wait between beeps.
The delay was choosen based on hearing the delay
in the original Director 4 beep script.
2019-12-22 21:03:16 +01:00
Roland van Laar
b5ff682fd2 DIRECTOR: Fix calling of Beep
- Converts beep called with zero args to beep(1)
- Beep arg starts counting at 1.
2019-12-22 21:03:16 +01:00
athrxx
a9e07c314f KYRA: (EOB/PC98) - add paranoia assert 2019-12-22 19:15:33 +01:00
athrxx
a48591ae0d KYRA: (HOF) - fix bug #10877 (Sound issues in the Legend of Kyrandia 2) 2019-12-22 19:09:34 +01:00
Eugene Sandulenko
8e6304bd13 DIRECTOR: Fix implementation of converting references to strings 2019-12-22 14:49:43 +01:00
Eugene Sandulenko
8895ca3c1f DIRECTOR: Store also unformatted text for text cast 2019-12-22 14:49:23 +01:00
Eugene Sandulenko
b85dd2d923 DIRECTOR: LINGO: Fix grammar for references 2019-12-22 14:28:11 +01:00
Eugene Sandulenko
7ee1c5d6fa DIRECTOR: It is fine to have non-existent references in score. Thus, hide the warning 2019-12-22 14:16:49 +01:00
Eugene Sandulenko
bfba1d28b7 DIRECTOR: Improved debug output 2019-12-22 13:24:30 +01:00
sluicebox
abc5e88d38 SCI32: Fix PHANT1 Stab flag reset in chapter 7 2019-12-21 18:31:15 -07:00
sluicebox
39feeca50c SCI32: Fix PHANT1 videos with out of sync censorship 2019-12-21 18:31:15 -07:00
sluicebox
bc87edada4 SCI32: Fix PHANT1 Chapel west exit during chase 2019-12-21 18:31:15 -07:00
sluicebox
540290ee3a SCI32: Fix PHANT1 when quitting ScummVM during chase 2019-12-21 18:26:08 -07:00
sluicebox
649c801839 SCI: Implement kFileIOCopy
Allows patching a Phantasmagoria 1 script to copy instead of rename.
Although most games can call this through their File:copy script, none
have been discovered yet that do.
2019-12-21 18:26:07 -07:00
sluicebox
568a5bcd7c SCI32: Fix PHANT1 Chase history deletion in chapter 7
blerg
2019-12-21 18:26:07 -07:00
sluicebox
7f603daf18 SCI32: Fix PHANT1 Wine cask hotspot in chapter 5 2019-12-21 18:17:40 -07:00
Eugene Sandulenko
af7a605955 DIRECTOR: LINGO: Remove D4-specific tests 2019-12-22 00:14:56 +01:00
Eugene Sandulenko
4dfc0c53cd DIRECTOR: LINGO: Fix 'me' syntax. It is a function 2019-12-22 00:10:25 +01:00
Eugene Sandulenko
5574279ccd DIRECTOR: LINGO: Register only builtins per Director version 2019-12-22 00:10:25 +01:00
neuromancer
bd92f2d00a SHERLOCK: Enable the use of TTS to read descriptions as a "narrator" for The Case of Serrated Scalpel 2019-12-21 16:49:13 +02:00
neuromancer
e7ff394f33 MADS: Enable the optional use of TTS to read descriptions as a narrator in Rex Nebular 2019-12-21 16:45:35 +02:00
athrxx
4e7e0344de KYRA: (EOB) - fix party transfer from PC-98 to other platforms
Unlike the original, ScummVM intends to allow EOB1 party transfer between any versions (Amiga->DOS or vice versa). Now, this also works from PC-98 to non-PC-98.
2019-12-20 23:55:05 +01:00
neuromancer
d0571e6ab5 LURE: Enable the optional use of TTS to read descriptions as a narrator 2019-12-20 23:50:44 +02:00
Eugene Sandulenko
986ceec96c DIRECTOR: LINGO: Added debugging lines for GLR parser 2019-12-20 20:03:13 +01:00
Eugene Sandulenko
af443e7892 DIRECTOR: LINGO: Fix matching local arguments while parsing 2019-12-20 19:41:01 +01:00
Eugene Sandulenko
e972d5109f DIRECTOR: LINGO: Match local arguments during parsing 2019-12-20 19:40:53 +01:00
Eugene Sandulenko
bd1c0add82 DIRECTOR: LINGO: Added more granularity to definition parse state 2019-12-20 19:40:11 +01:00
athrxx
44d8eaf71c KYRA: (EOB/PC98) - remove unused variable 2019-12-20 15:43:45 +01:00
athrxx
c8544430df KYRA: (EOB2/FM-TOWNS) - fix minor color glitch
- in nightmare sequence in dungeon level -4
- can not always be noticed
2019-12-20 14:32:24 +01:00
athrxx
2d7355dcf2 KYRA: (EOB/PC98) - fix music mute setting
(this has to be done a bit different for PC-98, since - unlike the other currently supported platforms - PC-98 has ingame music)
2019-12-20 14:32:24 +01:00
Eugene Sandulenko
c5c8f3458b DIRECTOR: LINGO: Improved debug output 2019-12-20 10:41:32 +01:00
D G Turner
b21632c835 MUTATIONOFJB: Fix Unused Variable Compiler Warning 2019-12-20 08:06:09 +00:00
D G Turner
0ff7f10a50 GLK: ADRIFT: Fix Unused Constant Compiler Warning 2019-12-19 14:49:07 +00:00
D G Turner
3fb386a2f9 FULLPIPE: Remove Unused Private Members from Sound Class
These cause warnings from Clang when -Wunused-private-field is set.

Was initially unsure if this class was saved as it was a subclass of
MemoryObject, but changing this appears to be safe as the save method
is not implemented in any case.
2019-12-19 14:19:14 +00:00
lolbot-iichan
ea27ffd8a3 WINTERMUTE: Refactor UIEdit::handleKeypress()
This fixes https://bugs.scummvm.org/ticket/11033

Removed checking printable property for system keys.
Refactored whole function to make it a bit more readable.

Reference implementations:
https://github.com/retrowork/wmelite/blob/master/src/UIEdit.cpp#L724

https://github.com/retrowork/Wintermute-Engine/blob/master/src/engine_core/wme_base/UIEdit.cpp#L708
2019-12-19 15:50:25 +02:00
lolbot-iichan
8a93f2c9f4 WINTERMUTE: Handle isCurrentPrintable property for WME 1.x and WME Lite
1. Moved KEYCODE_SPACE to "alphanumeric or punctuation" group.
2. Splited "else" into before and after WME_LITE.
2019-12-19 15:50:25 +02:00
Eugene Sandulenko
6ce34299ff DIRECTOR: LINGO: Make 'method {identifier}' as a single token.
This lets avoid clashes with method names matching built-ins.
2019-12-19 14:33:56 +01:00
D G Turner
fc5eb5ecf8 GLK: ARCHETYPE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-19 13:16:18 +00:00
D G Turner
e7bbc33797 GLK: FROTZ: Fix Missing Default Switch Case
This is flagged by GCC if -Wswitch-default is enabled.
2019-12-19 11:05:20 +00:00
Eugene Sandulenko
d00ee14158 DIRECTOR: LINGO: Fix crash for commandless menu items 2019-12-18 22:47:32 +01:00
Eugene Sandulenko
2847723f0b DIRECTOR: LINGO: Remove unnecessary global references 2019-12-18 22:47:32 +01:00
Eugene Sandulenko
836e470470 DIRECTOR: LINGO: Properly process dontPassEvent flag 2019-12-18 22:47:32 +01:00
Eugene Sandulenko
1d1f09f072 DIRECTOR: LINGO: Rename dontPassEvent and simplify code 2019-12-18 22:47:31 +01:00
Eugene Sandulenko
98b8b8d730 DIRECTOR: LINGO: b_nothing was implemented awhile ago 2019-12-18 22:47:31 +01:00
Eugene Sandulenko
ce9b358034 DIRECTOR: LINGO: Process specific event in sprite script for D3 2019-12-18 22:47:31 +01:00
Eugene Sandulenko
034f629f0e DIRECTOR: LINGO: Hid more noise warnings 2019-12-18 22:47:31 +01:00
athrxx
4b7a48fb75 KYRA: fix broken builds (now for real?) 2019-12-18 22:29:49 +01:00