MYST3: Add support for returning to launcher from the GMM

This commit is contained in:
Bastien Bouclet 2012-01-23 18:15:57 +01:00
parent 52c4ded94b
commit 6e02a8c3be
2 changed files with 8 additions and 2 deletions

View File

@ -108,6 +108,11 @@ Myst3Engine::~Myst3Engine() {
delete _gfx;
}
bool Myst3Engine::hasFeature(EngineFeature f) const {
return
(f == kSupportsRTL);
}
Common::Error Myst3Engine::run() {
const int w = 640;
const int h = 480;
@ -146,7 +151,7 @@ Common::Error Myst3Engine::run() {
// Game init script, loads the menu
loadNode(1, 101, 1);
while (!_shouldQuit) {
while (!shouldQuit() && !_shouldQuit) {
_sound->update();
runNodeBackgroundScripts();
processInput(false);
@ -766,7 +771,7 @@ int16 Myst3Engine::openDialog(uint16 id) {
int16 result = -1;
while (result == -1) {
while (result == -1 && !shouldQuit()) {
result = dialog.update();
drawFrame();
}

View File

@ -85,6 +85,7 @@ public:
Myst3Engine(OSystem *syst, int gameFlags);
virtual ~Myst3Engine();
bool hasFeature(EngineFeature f) const;
Common::Error loadGameState(int slot);
const DirectorySubEntry *getFileDescription(const char* room, uint16 index, uint16 face, DirectorySubEntry::ResourceType type);