[Scummvm-git-logs] scummvm master -> a7d69a40cb2fb723fdd8d4b94e36116c53e21df2
tag2015
noreply at scummvm.org
Thu Jun 8 13:37:05 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a7d69a40cb AGS: Restore screenshot creation workaround on save
Commit: a7d69a40cb2fb723fdd8d4b94e36116c53e21df2
https://github.com/scummvm/scummvm/commit/a7d69a40cb2fb723fdd8d4b94e36116c53e21df2
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-06-08T14:40:05+02:00
Commit Message:
AGS: Restore screenshot creation workaround on save
This commit restores the old workaround to force screenshot creation on save,
which was lost among the upstream commits
Fixes bug #14477
Changed paths:
engines/ags/engine/ac/game.cpp
diff --git a/engines/ags/engine/ac/game.cpp b/engines/ags/engine/ac/game.cpp
index 5becad2f4cb..2693bbc9382 100644
--- a/engines/ags/engine/ac/game.cpp
+++ b/engines/ags/engine/ac/game.cpp
@@ -880,7 +880,10 @@ void save_game(int slotn, const char *descript) {
VALIDATE_STRING(descript);
String nametouse = get_save_game_path(slotn);
std::unique_ptr<Bitmap> screenShot;
- if (_GP(game).options[OPT_SAVESCREENSHOT] != 0)
+
+ // WORKAROUND: AGS originally only creates savegames if the game flags
+ // that it supports it. But we want it all the time for ScummVM GMM
+ if (/*_GP(game).options[OPT_SAVESCREENSHOT] != 0*/ true)
screenShot.reset(create_savegame_screenshot());
std::unique_ptr<Stream> out(StartSavegame(nametouse, descript, screenShot.get()));
More information about the Scummvm-git-logs
mailing list