[Scummvm-cvs-logs] SF.net SVN: scummvm:[51664] scummvm/trunk/engines/sci/engine/kgraphics.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Aug 2 23:57:17 CEST 2010


Revision: 51664
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51664&view=rev
Author:   m_kiewitz
Date:     2010-08-02 21:57:17 +0000 (Mon, 02 Aug 2010)

Log Message:
-----------
SCI: only display qfg-import information dialog once

per room usage

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2010-08-02 21:44:41 UTC (rev 51663)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2010-08-02 21:57:17 UTC (rev 51664)
@@ -918,14 +918,20 @@
 	if (objName == "savedHeros") {
 		// Import of QfG character files dialog is shown
 		// display additional popup information before letting user use it
-		GUI::MessageDialog dialog("Characters saved inside ScummVM are shown "
-				"automatically. Character files saved in the original "
-				"interpreter need to be put inside ScummVM's saved games "
-				"directory and a prefix needs to be added depending on which "
-				"game it was saved in: 'qfg1-' for Quest for Glory 1, 'qfg2-' "
-				"for Quest for Glory 2. Example: 'qfg2-thief.sav'.",
-				"OK");
-		dialog.runModal();
+		reg_t changeDirButton = s->_segMan->findObjectByName("changeDirItem");
+		if (!changeDirButton.isNull()) {
+			// check if checkDirButton is still enabled, in that case we are called the first time during that room
+			if (!(readSelectorValue(s->_segMan, changeDirButton, SELECTOR(state)) & SCI_CONTROLS_STYLE_DISABLED)) {
+				GUI::MessageDialog dialog("Characters saved inside ScummVM are shown "
+						"automatically. Character files saved in the original "
+						"interpreter need to be put inside ScummVM's saved games "
+						"directory and a prefix needs to be added depending on which "
+						"game it was saved in: 'qfg1-' for Quest for Glory 1, 'qfg2-' "
+						"for Quest for Glory 2. Example: 'qfg2-thief.sav'.",
+						"OK");
+				dialog.runModal();
+			}
+		}
 	}
 
 	_k_GenericDrawControl(s, controlObject, false);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list