[Scummvm-cvs-logs] SF.net SVN: scummvm:[52663] scummvm/trunk/engines/sci/engine/kgraphics.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Thu Sep 9 20:34:28 CEST 2010
Revision: 52663
http://scummvm.svn.sourceforge.net/scummvm/?rev=52663&view=rev
Author: mthreepwood
Date: 2010-09-09 18:34:27 +0000 (Thu, 09 Sep 2010)
Log Message:
-----------
SCI: Cleanup kWinHelp's dialog handling
Don't display the message twice and now we use the filename in the message.
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-09-09 18:26:16 UTC (rev 52662)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-09-09 18:34:27 UTC (rev 52663)
@@ -1478,7 +1478,18 @@
}
reg_t kWinHelp(EngineState *s, int argc, reg_t *argv) {
- showScummVMDialog("Please use an external viewer to open the game's help file");
+ switch (argv[0].toUint16()) {
+ case 1:
+ // Load a help file
+ // Maybe in the future we can implement this, but for now this message should suffice
+ showScummVMDialog("Please use an external viewer to open the game's help file: " + s->_segMan->getString(argv[1]));
+ break;
+ case 2:
+ // Looks like some init function
+ break;
+ default:
+ warning("Unknown kWinHelp subop %d", argv[0].toUint16());
+ }
return s->r_acc;
}
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