aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/cruise.h
diff options
context:
space:
mode:
authorPaul Gilbert2009-02-14 00:10:51 +0000
committerPaul Gilbert2009-02-14 00:10:51 +0000
commitaa82c6fa7bd5dad43e1f5506714ffc2b6329aac9 (patch)
tree8f74532a82fecd1705755aa19467233fdb51508b /engines/cruise/cruise.h
parentade4313695aaef0274e01dc482359de3f9c2c444 (diff)
downloadscummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.tar.gz
scummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.tar.bz2
scummvm-rg350-aa82c6fa7bd5dad43e1f5506714ffc2b6329aac9.zip
Changed the list of language dependant strings from being hard-coded to dynamically being loaded from the 'delphine.lng' file
svn-id: r36317
Diffstat (limited to 'engines/cruise/cruise.h')
-rw-r--r--engines/cruise/cruise.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cruise/cruise.h b/engines/cruise/cruise.h
index 0ed3e57d1b..2345e60f67 100644
--- a/engines/cruise/cruise.h
+++ b/engines/cruise/cruise.h
@@ -40,16 +40,23 @@ enum CruiseGameType {
GType_CRUISE = 1
};
+#define MAX_LANGUAGE_STRINGS 25
+
+enum LangStringId { ID_PAUSED = 0, ID_INVENTORY = 5, ID_PLAYER_MENU = 7,
+ ID_SAVE = 9, ID_LOAD = 10, ID_RESTART = 11, ID_QUIT = 12};
+
struct CRUISEGameDescription;
class CruiseEngine: public Engine {
private:
void initialize(void);
+ bool loadLanguageStrings();
bool makeLoad(char *saveName);
void mainLoop(int bootScriptIdx);
bool _preLoad;
Debugger *_debugger;
+ Common::StringList _langStrings;
protected:
// Engine APIs
@@ -69,6 +76,7 @@ public:
Common::Language getLanguage() const;
Common::Platform getPlatform() const;
virtual GUI::Debugger *getDebugger() { return _debugger; }
+ const char *langString(LangStringId langId) { return _langStrings[(int)langId].c_str(); }
bool loadSaveDirectory(void);
void makeSystemMenu(void);