diff options
author | Matthew Hoops | 2010-09-09 18:34:27 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-09-09 18:34:27 +0000 |
commit | 61adb401b2e7f515067b5a4561b222a82fc604b8 (patch) | |
tree | 1e21f3ddb0fe44d7733e35fc7811bd5ed20cae87 /engines/sci | |
parent | 5eb0314e4cc94291f4ffb62cd2c7784ff1e26748 (diff) | |
download | scummvm-rg350-61adb401b2e7f515067b5a4561b222a82fc604b8.tar.gz scummvm-rg350-61adb401b2e7f515067b5a4561b222a82fc604b8.tar.bz2 scummvm-rg350-61adb401b2e7f515067b5a4561b222a82fc604b8.zip |
SCI: Cleanup kWinHelp's dialog handling
Don't display the message twice and now we use the filename in the message.
svn-id: r52663
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 7bfec4aea6..202611179a 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1478,7 +1478,18 @@ reg_t kGetWindowsOption(EngineState *s, int argc, reg_t *argv) { } 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; } |