mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GLK: ADVSYS: Move AdvSys out of release build exclusion
This commit is contained in:
parent
66babe212e
commit
9dde3e6131
@ -114,12 +114,12 @@ Common::Error GlkMetaEngine::createInstance(OSystem *syst, Engine **engine) cons
|
||||
|
||||
// Create the correct engine
|
||||
*engine = nullptr;
|
||||
if ((*engine = create<Glk::Frotz::FrotzMetaEngine, Glk::Frotz::Frotz>(syst, gameDesc)) != nullptr) {}
|
||||
if ((*engine = create<Glk::AdvSys::AdvSysMetaEngine, Glk::AdvSys::AdvSys>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Frotz::FrotzMetaEngine, Glk::Frotz::Frotz>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Glulxe::GlulxeMetaEngine, Glk::Glulxe::Glulxe>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Hugo::HugoMetaEngine, Glk::Hugo::Hugo>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Scott::ScottMetaEngine, Glk::Scott::Scott>(syst, gameDesc)) != nullptr) {}
|
||||
#ifndef RELEASE_BUILD
|
||||
else if ((*engine = create<Glk::AdvSys::AdvSysMetaEngine, Glk::AdvSys::AdvSys>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Alan2::Alan2MetaEngine, Glk::Alan2::Alan2>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((*engine = create<Glk::Magnetic::MagneticMetaEngine, Glk::Magnetic::Magnetic>(syst, gameDesc)) != nullptr) {}
|
||||
else if ((td = Glk::TADS::TADSMetaEngine::findGame(gameDesc._gameId.c_str()))._description) {
|
||||
@ -160,12 +160,12 @@ Common::String GlkMetaEngine::findFileByGameId(const Common::String &gameId) con
|
||||
|
||||
PlainGameList GlkMetaEngine::getSupportedGames() const {
|
||||
PlainGameList list;
|
||||
Glk::AdvSys::AdvSysMetaEngine::getSupportedGames(list);
|
||||
Glk::Frotz::FrotzMetaEngine::getSupportedGames(list);
|
||||
Glk::Glulxe::GlulxeMetaEngine::getSupportedGames(list);
|
||||
Glk::Hugo::HugoMetaEngine::getSupportedGames(list);
|
||||
Glk::Scott::ScottMetaEngine::getSupportedGames(list);
|
||||
#ifndef RELEASE_BUILD
|
||||
Glk::AdvSys::AdvSysMetaEngine::getSupportedGames(list);
|
||||
Glk::Alan2::Alan2MetaEngine::getSupportedGames(list);
|
||||
Glk::Magnetic::MagneticMetaEngine::getSupportedGames(list);
|
||||
Glk::TADS::TADSMetaEngine::getSupportedGames(list);
|
||||
@ -175,7 +175,10 @@ PlainGameList GlkMetaEngine::getSupportedGames() const {
|
||||
}
|
||||
|
||||
PlainGameDescriptor GlkMetaEngine::findGame(const char *gameId) const {
|
||||
Glk::GameDescriptor gd = Glk::Frotz::FrotzMetaEngine::findGame(gameId);
|
||||
Glk::GameDescriptor gd = Glk::AdvSys::AdvSysMetaEngine::findGame(gameId);
|
||||
if (gd._description) return gd;
|
||||
|
||||
gd = Glk::Frotz::FrotzMetaEngine::findGame(gameId);
|
||||
if (gd._description) return gd;
|
||||
|
||||
gd = Glk::Glulxe::GlulxeMetaEngine::findGame(gameId);
|
||||
@ -188,9 +191,6 @@ PlainGameDescriptor GlkMetaEngine::findGame(const char *gameId) const {
|
||||
if (gd._description) return gd;
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
gd = Glk::AdvSys::AdvSysMetaEngine::findGame(gameId);
|
||||
if (gd._description) return gd;
|
||||
|
||||
gd = Glk::Alan2::Alan2MetaEngine::findGame(gameId);
|
||||
if (gd._description) return gd;
|
||||
|
||||
@ -208,13 +208,13 @@ DetectedGames GlkMetaEngine::detectGames(const Common::FSList &fslist) const {
|
||||
detectClashes();
|
||||
|
||||
DetectedGames detectedGames;
|
||||
Glk::AdvSys::AdvSysMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Frotz::FrotzMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Glulxe::GlulxeMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Hugo::HugoMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Scott::ScottMetaEngine::detectGames(fslist, detectedGames);
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
Glk::AdvSys::AdvSysMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Alan2::Alan2MetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::Magnetic::MagneticMetaEngine::detectGames(fslist, detectedGames);
|
||||
Glk::TADS::TADSMetaEngine::detectGames(fslist, detectedGames);
|
||||
@ -225,13 +225,13 @@ DetectedGames GlkMetaEngine::detectGames(const Common::FSList &fslist) const {
|
||||
|
||||
void GlkMetaEngine::detectClashes() const {
|
||||
Common::StringMap map;
|
||||
Glk::AdvSys::AdvSysMetaEngine::detectClashes(map);
|
||||
Glk::Frotz::FrotzMetaEngine::detectClashes(map);
|
||||
Glk::Glulxe::GlulxeMetaEngine::detectClashes(map);
|
||||
Glk::Hugo::HugoMetaEngine::detectClashes(map);
|
||||
Glk::Scott::ScottMetaEngine::detectClashes(map);
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
Glk::AdvSys::AdvSysMetaEngine::detectClashes(map);
|
||||
Glk::Alan2::Alan2MetaEngine::detectClashes(map);
|
||||
Glk::Magnetic::MagneticMetaEngine::detectClashes(map);
|
||||
Glk::TADS::TADSMetaEngine::detectClashes(map);
|
||||
|
Loading…
Reference in New Issue
Block a user