mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
NGI: Loading of initial file for MDream
This commit is contained in:
parent
1395a8b4e5
commit
f48d052021
@ -49,6 +49,10 @@ const char *NGIEngine::getGameId() const {
|
||||
return _gameDescription->desc.gameId;
|
||||
}
|
||||
|
||||
int NGIEngine::getGameGID() const {
|
||||
return _gameDescription->gameId;
|
||||
}
|
||||
|
||||
} // End of namspace Fullpipe
|
||||
|
||||
class NGIMetaEngine : public AdvancedMetaEngine {
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "graphics/surface.h"
|
||||
|
||||
#include "ngi/ngi.h"
|
||||
#include "ngi/detection.h"
|
||||
#include "ngi/gameloader.h"
|
||||
#include "ngi/messages.h"
|
||||
#include "ngi/behavior.h"
|
||||
@ -282,8 +283,19 @@ Common::Error NGIEngine::run() {
|
||||
if (ConfMan.hasKey("save_slot"))
|
||||
scene = -1;
|
||||
|
||||
if (!loadGam("fullpipe.gam", scene))
|
||||
return Common::kNoGameDataFoundError;
|
||||
switch (getGameGID()) {
|
||||
case GID_FULLPIPE:
|
||||
if (!loadGam("fullpipe.gam", scene))
|
||||
return Common::kNoGameDataFoundError;
|
||||
break;
|
||||
case GID_MDREAM:
|
||||
if (!loadGam("new.gam", scene))
|
||||
return Common::kNoGameDataFoundError;
|
||||
break;
|
||||
default:
|
||||
warning("Unknown GID");
|
||||
return Common::kUnsupportedGameidError;
|
||||
}
|
||||
|
||||
if (ConfMan.hasKey("save_slot")) {
|
||||
loadGameState(ConfMan.getInt("save_slot"));
|
||||
|
@ -132,6 +132,7 @@ public:
|
||||
bool isDemo();
|
||||
Common::Language getLanguage() const;
|
||||
const char *getGameId() const;
|
||||
int getGameGID() const;
|
||||
|
||||
Common::RandomSource _rnd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user