Added support for needed MADS game configuration options

svn-id: r45911
This commit is contained in:
Paul Gilbert 2009-11-15 08:22:14 +00:00
parent b207429161
commit 6bb2b8aa9a
3 changed files with 13 additions and 1 deletions

View File

@ -204,6 +204,11 @@ public:
// M4 variables
bool invSuppressClickSound;
// MADS variables
bool easyMouse;
bool invObjectsStill;
bool textWindowStill;
int storyMode;
void loadMadsVocab();
uint32 getVocabSize() { return _madsVocab.size(); }

View File

@ -283,7 +283,12 @@ Common::Error M4Engine::goMADS() {
_globals->loadMadsQuotes(); // quotes.dat
_globals->loadMadsMessagesInfo(); // messages.dat
_globals->loadMadsObjects();
// Setup globals
_vm->_globals->easyMouse = true;
_vm->_globals->invObjectsStill = false;
_vm->_globals->textWindowStill = false;
_vm->_globals->storyMode = 0;
// Test code to dump all messages to the console
//for (int i = 0; i < _globals->getMessagesSize(); i++)

View File

@ -99,6 +99,8 @@ struct M4GameDescription;
#define GAME_FRAME_DELAY 50
#define VALIDATE_MADS assert(!_vm->isM4())
inline void str_lower(char *s) { while (*s) { *s = tolower(*s); s++; } }
inline void str_upper(char *s) { while (*s) { *s = toupper(*s); s++; } }