mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
MYST3: Add support for returning to launcher from the GMM
This commit is contained in:
parent
52c4ded94b
commit
6e02a8c3be
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user