[Scummvm-git-logs] scummvm master -> 5a14999455fdd9f4e0bae50e0b14c469eb450141
tag2015
noreply at scummvm.org
Wed Jun 14 09:46:39 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:
5a14999455 AGS: Don't create screenshot for Whispers of a Machine
Commit: 5a14999455fdd9f4e0bae50e0b14c469eb450141
https://github.com/scummvm/scummvm/commit/5a14999455fdd9f4e0bae50e0b14c469eb450141
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-06-14T11:18:53+02:00
Commit Message:
AGS: Don't create screenshot for Whispers of a Machine
Disable screenshot workaround for Whispers of a Machine, which autosaves frequently
and causes an annoying flicker
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 2693bbc9382..e73ba194179 100644
--- a/engines/ags/engine/ac/game.cpp
+++ b/engines/ags/engine/ac/game.cpp
@@ -19,6 +19,7 @@
*
*/
+#include "common/config-manager.h"
#include "common/memstream.h"
#include "ags/engine/ac/game.h"
#include "ags/shared/ac/common.h"
@@ -884,7 +885,8 @@ void save_game(int slotn, const char *descript) {
// 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());
+ if (ConfMan.get("gameid") != "whispersofamachine")
+ screenShot.reset(create_savegame_screenshot());
std::unique_ptr<Stream> out(StartSavegame(nametouse, descript, screenShot.get()));
if (out == nullptr) {
More information about the Scummvm-git-logs
mailing list