Commit graph

483 commits

Author SHA1 Message Date
Filippos Karapetis
c411bbb758 BURIED: Clean up game pausing functions and use pauseEngine() 2021-12-29 22:52:46 +02:00
Filippos Karapetis
479c2ba1f3 BURIED: Proper handling of engine pausing - bug #12886
The game is now paused while the interface menu, the save dialog and the
restore dialog is shown. The interface menu always pauses the game when
shown, regardless of the pause option. Hotkeys for saving, loading and
pausing the game are disabled while these dialogs are open.
2021-12-29 22:28:17 +02:00
Filippos Karapetis
2704a81a96 BURIED: Close the biochip view after saving - FR #13178
This improves the player experience, as it's a bit tedious to close the
biochip menu every time after saving
2021-12-29 19:16:10 +02:00
Filippos Karapetis
72b4c652f0 BURIED: Cleanup the biochip toggling code 2021-12-29 19:16:09 +02:00
Filippos Karapetis
404743fafa BURIED: Implement game pausing via Control-P - bug #12934
Also, this commit fixes wrong fall through when handling the other
hotkey combinations
2021-12-29 18:47:58 +02:00
Filippos Karapetis
de13dc6364 BURIED: Fix fallback in the latest video and audio skipping code
This could result in infinite looping
2021-12-29 18:08:50 +02:00
Filippos Karapetis
1d991bd10d BURIED: Group GUI options 2021-12-29 18:08:50 +02:00
Filippos Karapetis
ae8b436f22 BURIED: Cleanup variable usage 2021-12-29 18:08:50 +02:00
Filippos Karapetis
889070f479 BURIED: Hide mouse pointer during cutscenes - FR #13172
This change enhances the experience. I've played through the whole
game with it, and no issues have been found
2021-12-29 18:08:50 +02:00
Filippos Karapetis
e13a72e8f6 BURIED: Also allow skipping synchronous sounds 2021-12-29 18:08:49 +02:00
Filippos Karapetis
2591106d38 BURIED: Pass the currently playing video to yield()
This allows sending the event to the specific video, not to all the
currently playing videos. Also, this allows to distinguish video from
audio loops and only process video skipping events when playing videos
2021-12-28 18:57:40 +02:00
Filippos Karapetis
a6bee10165 BURIED: Add support and game option for video skipping - FR #12891
Video skipping is done with the escape key and is enabled by default,
but can be disabled with the new "skip support" game option to keep
the original game behavior where video skipping isn't possible
2021-12-28 15:01:37 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
369eae5f35 BURIED: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh
ee57380de7 ENGINES: JANITORIAL: Remove 'virtual' when override is specified 2021-11-14 14:32:04 +02:00
Orgad Shaneh
4ff77410ab BURIED: Use override
Using clang-tidy modernize-use-override
2021-11-14 13:37:12 +02:00
Orgad Shaneh
78ef6203de ENGINES: Fix getSavegameFile for almost all engines
Use kSimpleSavesNames correctly, add where needed, remove where needed.

Trac #12977
2021-11-10 21:49:48 +00:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
Eugene Sandulenko
7db91a6bef
BURIED: Testing is over 2021-10-01 14:13:15 +03:00
trembyle
099b4d26f5 BURIED: Add detection for Canadian demo
I'm half-jokingly calling it Canadian because Sanctuary Woods was
located there, but it is clearly North American based on the telephone
number.

The demo before this was published by US Gold, a British publisher,
and based on the Manchester phone number, this one is intended for the
UK.

I don't have a copy of the third demo.
2021-09-19 14:52:46 +02:00
Torbjörn Andersson
e8fb4b4898 BURIED: Fix door opening transition to Da Vinci study (bug 12885)
Integrated upstreams code for playing the correct animation when opening
the door to Da Vinci's study. I take no credit for this, since the
complete solution was just handed to me and I could never have figured
it out on my own.
2021-09-16 11:36:25 +03:00
Torbjörn Andersson
0efdcb9b46 BURIED: Clear the live text window when moving, as advertised (bug 12887)
The comment says it will clear the live text window, but instead
disabled the navigation arrows (I think), which it then does again right
aftewards. A cut and paste error, perhaps?
2021-09-08 13:35:33 +02:00
Torbjörn Andersson
0e7c8ce60e BURIED: Fix missing agent research score (bug 12881)
The Agent 3 information and profile research points were awarded when
pressing the "next" button, so they were never awarded. Award them when
hitting a hotspot instead.
2021-09-07 23:31:49 +02:00
Torbjörn Andersson
827e7306cf BURIED: Fix missing jump suit research points (bug 12881)
The positions of the previous and next button had been mixed up. The
previous button is left of the next button, not the other way around.

This meant you could only be awarded points when pressing the previous
button, and since you would then step away from the page that awards
point that did not work.

Since the buttons worked in other respects, the id for the previous and
next pages must also have been similarly mixed up. This too should be
fixed now.
2021-09-07 23:31:49 +02:00
Thunderforge
481568edc9 BURIED: Fixing spelling errors in comments 2021-09-07 08:19:35 +03:00
Coen Rampen
11dbe3ca3d BURIED: Add volume control
This adds volume control to the game by setting the mixer sound type on the
various audio streams to values other than the default "plain".

This uses the following sound types:
Ambient (music, environment sounds): music
AI voice: speech
Effects, interface, footsteps, movie audio: SFX

This could be further improved by specifying sound types for individual sounds,
f.e. SFX for environment sounds, or music for the "effects" in the appartment
which are short musical cues. The movie audio is of course pre-mixed music,
speech and SFX.
2021-09-03 21:24:17 +02:00
Max Horn
2f1f8f502e DEVTOOLS: move credits from devtools/credits.pl to engines
This employs a "lazy" approach: the "format" for the credits stays
exactly as it was, i.e., perl code. Of course one may want to change
this to another format (e.g. YAML, JSON, XML; or also shell script or
AWK, like `configure.engine` uses). But I deliberately kept it simple,
to get a minimal change that is easy to verify. Any further changes to
e.g. the format can be layered atop this.
2021-08-05 00:01:46 +02:00
Cameron Cawley
bf4ae50a3f COMMON: Add a helper function for loading version resources 2021-07-15 13:55:33 +02:00
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Eugene Sandulenko
1fb1a417c2
BURIED: Engine is in testing 2021-06-29 00:59:57 +02:00
Cameron Cawley
a1e785e5ec BURIED: Add detection for another demo version 2021-06-27 13:00:56 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
af9aa7fbf2 BURIED: Fix 1.00 detection entries 2021-03-26 08:29:54 +01:00
D G Turner
3c0d2109cd BURIED: Fix Signed vs. Unsigned Comparison GCC Compiler Warnings 2021-03-26 00:25:10 +00:00
Cameron Cawley
2186024624 BURIED: Improve text encoding conversion 2021-03-25 20:53:16 +01:00
Cameron Cawley
fe6772a9e5 BURIED: Simplify the executable loading code 2021-03-25 20:52:28 +01:00
Eugene Sandulenko
1fb57c21e0 BURIED: Added sanity check on movie play 2021-03-25 16:06:44 +01:00
Eugene Sandulenko
32136a8c9e BURIED: Added sanity checks on video loading 2021-03-25 16:06:44 +01:00
Eugene Sandulenko
66d1c3fecc BURIED: Plugged another memory leak 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
2b9ec32e6e BURIED: Another leak on death plugged 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
4587da68a4 BURIED: Plugged another memory leak 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
0c35658304 BURIED: Added 1.00 version to the detection tables 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
b90a049ba0 BURIED: Clean up new scene on death to prevent memory leaks
This plugs memory leak in this case
2021-03-25 15:57:20 +01:00
Eugene Sandulenko
fe493acf55 BURIED: Plug another memory leak 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
e087fe09cc BURIED: Plug memory leak 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
b2a83dea8e BURIED: Fixed mixing signed/unsigned values 2021-03-25 15:57:20 +01:00
Eugene Sandulenko
f07685729c BURIED: Replace magic numbers with enum 2021-03-25 15:57:19 +01:00
Eugene Sandulenko
99b947979d BURIED: Initialize class variables 2021-03-25 15:57:19 +01:00
Eugene Sandulenko
b8da2eed66 BURIED: Pass big parameters only by reference 2021-03-25 15:57:19 +01:00
Cameron Cawley
1b98b8e6a2 BURIED: Update the console code 2021-03-25 16:31:31 +02:00