diff options
author | Arnaud Boutonné | 2010-08-20 15:30:30 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-08-20 15:30:30 +0000 |
commit | 0b4fef3aa745a873deb99ca9ff95e33d12770f2c (patch) | |
tree | e95486b78ac19692b1624fe74e6fa603e743a0b3 /engines/hugo | |
parent | dd1708a1f12d1911a785cafdf7344d72065a1086 (diff) | |
download | scummvm-rg350-0b4fef3aa745a873deb99ca9ff95e33d12770f2c.tar.gz scummvm-rg350-0b4fef3aa745a873deb99ca9ff95e33d12770f2c.tar.bz2 scummvm-rg350-0b4fef3aa745a873deb99ca9ff95e33d12770f2c.zip |
Hugo - Move DOS hardcoded inventory strings to Hugo.dat
svn-id: r52226
Diffstat (limited to 'engines/hugo')
-rw-r--r-- | engines/hugo/hugo.h | 2 | ||||
-rw-r--r-- | engines/hugo/parser.cpp | 12 | ||||
-rw-r--r-- | engines/hugo/parser.h | 20 |
3 files changed, 10 insertions, 24 deletions
diff --git a/engines/hugo/hugo.h b/engines/hugo/hugo.h index 21705b1070..f65d271d76 100644 --- a/engines/hugo/hugo.h +++ b/engines/hugo/hugo.h @@ -33,7 +33,7 @@ #include "hugo/game.h" #define HUGO_DAT_VER_MAJ 0 // 1 byte -#define HUGO_DAT_VER_MIN 16 // 1 byte +#define HUGO_DAT_VER_MIN 17 // 1 byte #define DATAALIGNMENT 4 namespace Common { diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index 79b616adde..41d9a5afb5 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -678,8 +678,6 @@ bool Parser::isObjectVerb(object_t *obj, char *line, char *comment) { void Parser::showDosInventory() { // Show user all objects being carried in a variable width 2 column format -static const char *intro = "You are carrying:"; -static const char *outro = "\nPress ESCAPE to continue"; static const char *blanks = " "; uint16 index, len, len1 = 0, len2 = 0; char buffer[XBYTES * NUM_ROWS] = "\0"; @@ -695,11 +693,11 @@ char buffer[XBYTES * NUM_ROWS] = "\0"; } len1 += 1; /* For gap between columns */ - if (len1 + len2 < (uint16)strlen(outro)) - len1 = strlen(outro); + if (len1 + len2 < (uint16)strlen(_vm._textParser[kTBOutro])) + len1 = strlen(_vm._textParser[kTBOutro]); - strncat (buffer, blanks, (len1 + len2 - strlen(intro)) / 2); - strcat (strcat (buffer, intro), "\n"); + strncat (buffer, blanks, (len1 + len2 - strlen(_vm._textParser[kTBIntro])) / 2); + strcat (strcat (buffer, _vm._textParser[kTBIntro]), "\n"); index = 0; for (int i = 0; i < _vm._numObj; i++) { /* Assign strings */ if (_vm._objects[i].carriedFl) { @@ -710,7 +708,7 @@ char buffer[XBYTES * NUM_ROWS] = "\0"; } } if (index & 1) strcat (buffer, "\n"); - strcat (buffer, outro); + strcat (buffer, _vm._textParser[kTBOutro]); Utils::Box(BOX_ANY, buffer); } diff --git a/engines/hugo/parser.h b/engines/hugo/parser.h index 82ba5a4bc6..e4ec8200d3 100644 --- a/engines/hugo/parser.h +++ b/engines/hugo/parser.h @@ -35,22 +35,10 @@ namespace Hugo { enum seqTextParser { - kTBExit = 0, - kTBMaze = 1, - kTBNoPoint = 2, - kTBNoun = 3, - kTBVerb = 4, - kTBEh = 5, - kTBUnusual = 6, - kTBHave = 7, - kTBNoUse = 8, - kTBDontHave = 9, - kTBNeed = 10, - kTBOk = 11, - kCmtAny1 = 12, - kCmtAny2 = 13, - kCmtAny3 = 14, - kCmtClose = 15 + kTBExit = 0, kTBMaze, kTBNoPoint, kTBNoun, kTBVerb, + kTBEh, kTBUnusual, kTBHave, kTBNoUse, kTBDontHave, + kTBNeed, kTBOk, kCmtAny1, kCmtAny2, kCmtAny3, + kCmtClose, kTBIntro, kTBOutro }; class Parser { |