mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
Added support for needed MADS game configuration options
svn-id: r45911
This commit is contained in:
parent
b207429161
commit
6bb2b8aa9a
@ -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(); }
|
||||
|
@ -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++)
|
||||
|
@ -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++; } }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user