aboutsummaryrefslogtreecommitdiff
path: root/scumm/help.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-01-14 09:28:38 +0000
committerTravis Howell2006-01-14 09:28:38 +0000
commitad14c5311029314e46918af764266c0c46ba6a77 (patch)
treeb89c1c5182f6590eece97f9d3ed3d256c1879a5b /scumm/help.cpp
parentb49ebb5be0e8829cf158c03bf8a60d46a949cb0b (diff)
downloadscummvm-rg350-ad14c5311029314e46918af764266c0c46ba6a77.tar.gz
scummvm-rg350-ad14c5311029314e46918af764266c0c46ba6a77.tar.bz2
scummvm-rg350-ad14c5311029314e46918af764266c0c46ba6a77.zip
Add SegaCD platform and remove SegaCD specific game Id.
svn-id: r20015
Diffstat (limited to 'scumm/help.cpp')
-rw-r--r--scumm/help.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/scumm/help.cpp b/scumm/help.cpp
index 3ff29c2851..4c4f5a4d02 100644
--- a/scumm/help.cpp
+++ b/scumm/help.cpp
@@ -20,9 +20,12 @@
*/
#include "common/stdafx.h"
+
+#include "common/str.h"
+#include "common/util.h"
+
#include "scumm/help.h"
#include "scumm/scumm.h"
-#include "common/str.h"
namespace Scumm {
@@ -40,7 +43,6 @@ int ScummHelp::numPages(byte gameId) {
case GID_LOOM256:
case GID_MONKEY_EGA:
case GID_MONKEY_VGA:
- case GID_MONKEY_SEGA:
case GID_MONKEY:
case GID_MONKEY2:
case GID_INDY4:
@@ -64,8 +66,8 @@ int ScummHelp::numPages(byte gameId) {
#define ADD_TEXT(d) ADD_BIND("",d)
#define ADD_LINE ADD_BIND("","")
-void ScummHelp::updateStrings(byte gameId, byte version, int page,
- String &title, String *&key, String *&dsc) {
+void ScummHelp::updateStrings(byte gameId, byte version, Common::Platform platform,
+ int page, String &title, String *&key, String *&dsc) {
key = new String[HELP_NUM_LINES];
dsc = new String[HELP_NUM_LINES];
int i = 0;
@@ -206,7 +208,6 @@ void ScummHelp::updateStrings(byte gameId, byte version, int page,
ADD_BIND("f", "turn oFf");
break;
case GID_MONKEY:
- case GID_MONKEY_SEGA:
case GID_MONKEY2:
case GID_INDY4:
case GID_TENTACLE:
@@ -219,7 +220,7 @@ void ScummHelp::updateStrings(byte gameId, byte version, int page,
ADD_BIND("u", "Use");
ADD_BIND("s", "puSh");
ADD_BIND("y", "pull (Yank)");
- if (gameId == GID_MONKEY_SEGA) {
+ if (platform == Common::kPlatformSegaCD) {
// FIXME look at scripts to figure all options out...
// keys 1->4 seem to do something as well
ADD_BIND("6", "Highlight prev dialogue");