diff options
author | Le Philousophe | 2019-08-26 19:17:04 +0200 |
---|---|---|
committer | Le Philousophe | 2019-08-26 19:17:04 +0200 |
commit | 19e2ba611aac9f697e32ef4bab47bdead2665b33 (patch) | |
tree | 8c81bf394431d54159c2e92556e7bfca8b7f6bb6 /engines/cryomni3d/detection.cpp | |
parent | 196b33bb7f6b04d42c36bf459b675233b34604ec (diff) | |
download | scummvm-rg350-19e2ba611aac9f697e32ef4bab47bdead2665b33.tar.gz scummvm-rg350-19e2ba611aac9f697e32ef4bab47bdead2665b33.tar.bz2 scummvm-rg350-19e2ba611aac9f697e32ef4bab47bdead2665b33.zip |
CRYOMNI3D: Move CryOmni3DMetaEngine in CryOmni3D namespace
Diffstat (limited to 'engines/cryomni3d/detection.cpp')
-rw-r--r-- | engines/cryomni3d/detection.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/cryomni3d/detection.cpp b/engines/cryomni3d/detection.cpp index 5928776a2c..6b7400f7aa 100644 --- a/engines/cryomni3d/detection.cpp +++ b/engines/cryomni3d/detection.cpp @@ -69,8 +69,6 @@ bool CryOmni3DEngine::hasFeature(EngineFeature f) const { || (f == kSupportsSubtitleOptions); } -} // End of Namespace CryOmni3D - static const PlainGameDescriptor cryomni3DGames[] = { {"versailles", "Versailles 1685"}, {0, 0} @@ -85,7 +83,7 @@ static const ADExtraGuiOptionsMap optionsList[] = { class CryOmni3DMetaEngine : public AdvancedMetaEngine { public: CryOmni3DMetaEngine() : AdvancedMetaEngine(CryOmni3D::gameDescriptions, - sizeof(CryOmni3D::CryOmni3DGameDescription), cryomni3DGames, optionsList) { + sizeof(CryOmni3DGameDescription), cryomni3DGames, optionsList) { //_singleId = "cryomni3d"; _maxScanDepth = 2; } @@ -120,7 +118,7 @@ bool CryOmni3DMetaEngine::hasFeature(MetaEngineFeature f) const { SaveStateList CryOmni3DMetaEngine::listSaves(const char *target) const { // Replicate constant here to shorten lines - static const uint kSaveDescriptionLen = CryOmni3D::CryOmni3DEngine::kSaveDescriptionLen; + static const uint kSaveDescriptionLen = CryOmni3DEngine::kSaveDescriptionLen; SaveStateList saveList; Common::SaveFileManager *saveMan = g_system->getSavefileManager(); @@ -160,13 +158,13 @@ void CryOmni3DMetaEngine::removeSaveState(const char *target, int slot) const { bool CryOmni3DMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { - const CryOmni3D::CryOmni3DGameDescription *gd = (const CryOmni3D::CryOmni3DGameDescription *)desc; + const CryOmni3DGameDescription *gd = (const CryOmni3DGameDescription *)desc; if (gd) { switch (gd->gameType) { - case CryOmni3D::GType_VERSAILLES: + case GType_VERSAILLES: #ifdef ENABLE_VERSAILLES - *engine = new CryOmni3D::Versailles::CryOmni3DEngine_Versailles(syst, gd); + *engine = new Versailles::CryOmni3DEngine_Versailles(syst, gd); break; #else warning("Versailles support not compiled in"); @@ -180,8 +178,10 @@ bool CryOmni3DMetaEngine::createInstance(OSystem *syst, Engine **engine, return (gd != 0); } +} // End of Namespace CryOmni3D + #if PLUGIN_ENABLED_DYNAMIC(CRYOMNI3D) -REGISTER_PLUGIN_DYNAMIC(CRYOMNI3D, PLUGIN_TYPE_ENGINE, CryOmni3DMetaEngine); +REGISTER_PLUGIN_DYNAMIC(CRYOMNI3D, PLUGIN_TYPE_ENGINE, CryOmni3D::CryOmni3DMetaEngine); #else -REGISTER_PLUGIN_STATIC(CRYOMNI3D, PLUGIN_TYPE_ENGINE, CryOmni3DMetaEngine); +REGISTER_PLUGIN_STATIC(CRYOMNI3D, PLUGIN_TYPE_ENGINE, CryOmni3D::CryOmni3DMetaEngine); #endif |