460 Commits

Author SHA1 Message Date
Filippos Karapetis
259572f50b BURIED: Adapt hardcoded flag in the OpenFirstItemAcquire() callback 2022-01-02 12:20:49 +02:00
Filippos Karapetis
fdf43e51ac BURIED: Pass global flag by ref to the ViewSingleTranslation() callback
This reduces the usage of setGlobalFlagByte()
2022-01-02 12:20:48 +02:00
Filippos Karapetis
ebf110d98f BURIED: Rewrite the handling of head flags for the arrow god scenes
This simplifies the code and reduces the usage of getGlobalFlagByte()
and setGlobalFlagByte()
2022-01-02 12:20:48 +02:00
Filippos Karapetis
1552759e62 BURIED: Improve code readability 2022-01-02 12:20:48 +02:00
Filippos Karapetis
f750b97687 BURIED: Rewrite the head opened time code for the Mayan arrow god scene
This allows us to remove the last usage of getGlobalFlagDWord() and
setGlobalFlagDWord()
2022-01-02 12:20:48 +02:00
Filippos Karapetis
b583326c5e BURIED: Pass global flag by reference to the GenericItemAcquire() callback
This reduces the usage of getGlobalFlagByte() and setGlobalFlagByte()
2022-01-02 12:20:48 +02:00
Filippos Karapetis
69c3fc4092 BURIED: Rewrite the pod and pod item flag logic in RetrieveFromPods()
This simplifies the code significantly and reduces the usage of
getGlobalFlagByte() and setGlobalFlagByte()
2022-01-02 12:20:47 +02:00
Filippos Karapetis
13afbe2792 BURIED: Pass global flag by reference to the PlaySoundEnteringScene() callback
This reduces the usage of getGlobalFlagByte() and setGlobalFlagByte()
2022-01-02 12:20:47 +02:00
Filippos Karapetis
18a52a5850 BURIED: Pass global flag by reference to the SetFlagOnEntry() callback
This reduces the usage of setGlobalFlagByte()
2022-01-02 12:20:47 +02:00
Filippos Karapetis
781191166a BURIED: Move common code in playTransition() into a separate function 2022-01-02 12:20:46 +02:00
Filippos Karapetis
1ccf15f34a BURIED: Allow pausing the game in the demo version 2022-01-02 12:20:46 +02:00
D G Turner
7bb707e986 BURIED: Fix Arthur Being Visible After AI Biochip is Lost
Fix for bug #13193 (BURIED: Arthur still visible after being lost
from Biochip Inventory).
2022-01-01 23:22:03 +00:00
Paweł Kołodziejski
85e07bb668 BURIED: Added missing 'override' 2022-01-01 14:10:09 +01:00
Filippos Karapetis
4b5bf64501 BURIED: Fix typo 2021-12-31 19:34:15 +02:00
Filippos Karapetis
728d76b089 BURIED: Adapt more callbacks with hardcoded global flags 2021-12-31 19:12:30 +02:00
Filippos Karapetis
bc9b2ddeda BURIED: Fix global flag corruption in death screens
A regression from b8da2eed66aeeeeee99e765ce08f0fb0a53460fa
2021-12-31 19:12:30 +02:00
Filippos Karapetis
73adf9548a BURIED: Show the agent evaluation (current points) with Control-D
This is the text that is shown in the death screens - it's an
enhancement in ScummVM, which is also quite useful for debugging
2021-12-31 19:12:30 +02:00
Filippos Karapetis
f08eb99259 BURIED: Stop async comments from Arthur with the space key - FR #13188 2021-12-31 14:12:34 +02:00
Filippos Karapetis
99ea2f68d8 BURIED: Adapt more cases of flag offsets with hardcoded global flags
Also, remove some dead code from SpaceDoor() and SpaceDoorTimer() in
the process
2021-12-30 22:58:55 +02:00
Filippos Karapetis
85123819a8 BURIED: Remove unused global flag access methods 2021-12-30 17:15:31 +02:00
Filippos Karapetis
07775d1f6b BURIED: Reduce cases with global flag access via offsets. Some cleanup 2021-12-30 17:15:31 +02:00
D G Turner
69b9c4a4b2 BURIED: Fix GCC Compiler Shadowing Warning 2021-12-30 15:11:34 +00:00
Filippos Karapetis
0bad0a32b2 BURIED: Remove superfluous SFX when erasing codes in the ShopNet screen 2021-12-30 16:27:49 +02:00
Filippos Karapetis
67eaeb6342 BURIED: Adjust some comments 2021-12-30 16:27:49 +02:00
Filippos Karapetis
05f6707210 BURIED: Simplify some of the variable casts for the Mayan logic
This makes it easier to read the code. No functional changes were made.
2021-12-30 16:27:48 +02:00
Filippos Karapetis
1880b37100 BURIED: Add metadata to saved games - FR #12889
- Saved games now contain all metadata, including thumbnails, creation
date and play time
- Savesd games are now named buried.###, and they are compatible among
all versions
- Saved games are now sorted by slot, like in other engines, and are no
longer sorted alphabetically as before
- The engine checks on startup for saves using the original format and
converts them to the new format, thus it's possible to import saved
games from the original game
- The currently selected item is now stored in the saved game, thus
crashes that were related to loading a game with fewer items than the
currently selected item no longer occur
2021-12-30 13:27:49 +02:00
Filippos Karapetis
b8094a3908 BURIED: Cleanup of the saving/loading dialog code 2021-12-30 00:24:35 +02:00
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
7adad5aaf5831dc5adcee140f38aacc4a5db2518 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 7adad5aaf5831dc5adcee140f38aacc4a5db2518.
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