From a7d69a40cb2fb723fdd8d4b94e36116c53e21df2 Mon Sep 17 00:00:00 2001 From: Walter Agazzi Date: Wed, 7 Jun 2023 16:17:15 +0200 Subject: [PATCH] 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 --- engines/ags/engine/ac/game.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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 out(StartSavegame(nametouse, descript, screenShot.get()));