[Scummvm-cvs-logs] scummvm master -> fc1464155a7e48b05829401c7605c3f65bda0000

bluegr bluegr at gmail.com
Fri Jul 10 13:14:33 CEST 2015


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:
fc1464155a SCI: Enable the save game menu option when dying in PQ2 - bug #6875


Commit: fc1464155a7e48b05829401c7605c3f65bda0000
    https://github.com/scummvm/scummvm/commit/fc1464155a7e48b05829401c7605c3f65bda0000
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2015-07-10T14:13:18+03:00

Commit Message:
SCI: Enable the save game menu option when dying in PQ2 - bug #6875

This uses the same hack as the one used to reset the menus in Jones.
I've tested some more SCI games, and they don't disable menu entries
when loading a game. Hopefully, Jones and PQ2 are the only ones

Changed paths:
    engines/sci/engine/kfile.cpp



diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index c56eb09..0ed08fa 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -933,6 +933,10 @@ reg_t kRestoreGame(EngineState *s, int argc, reg_t *argv) {
 				g_sci->_gfxMenu->kernelSetAttribute(1025 >> 8, 1025 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG);  // Status -> Statistics
 				g_sci->_gfxMenu->kernelSetAttribute(1026 >> 8, 1026 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG);  // Status -> Goals
 				break;
+			case GID_PQ2:
+				// HACK: Same as above - enable the save game menu option when dying in PQ2 (bug #6875)
+				g_sci->_gfxMenu->kernelSetAttribute(2, 1, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG);	// Game -> Save Game
+				break;
 			default:
 				break;
 			}






More information about the Scummvm-git-logs mailing list