xoreos
0.0.5
|
Public Member Functions | |
GameInstanceEngine (const Common::UString &target) | |
~GameInstanceEngine () | |
Common::UString | getGameName (bool platform) const |
bool | probe (const std::list< const EngineProbe *> &probes) |
Find an engine capable of running the game found in the GameInstance's target. More... | |
void | reset () |
Reset the GameInstance to a pre-probe state. More... | |
void | run () |
Run the probed game in the GameInstance's target. More... | |
void | listLanguages () |
List all available languages supported by this GameInstance's target. More... | |
Public Member Functions inherited from Engines::GameInstance | |
virtual | ~GameInstance () |
Private Member Functions | |
bool | probe (const Common::FileList &rootFiles, const std::list< const EngineProbe *> &probes) |
bool | probe (Common::SeekableReadStream &stream, const std::list< const EngineProbe *> &probes) |
void | createEngine () |
void | destroyEngine () |
Private Attributes | |
Common::UString | _target |
const EngineProbe * | _probe |
Common::ScopedPtr< Engine > | _engine |
Additional Inherited Members | |
Protected Member Functions inherited from Engines::GameInstance | |
GameInstance () | |
Definition at line 75 of file enginemanager.cpp.
Engines::GameInstanceEngine::GameInstanceEngine | ( | const Common::UString & | target | ) |
Definition at line 106 of file enginemanager.cpp.
Engines::GameInstanceEngine::~GameInstanceEngine | ( | ) |
Definition at line 109 of file enginemanager.cpp.
|
private |
Definition at line 180 of file enginemanager.cpp.
References _engine, _probe, Engines::EngineProbe::createEngine(), and destroyEngine().
Referenced by listLanguages(), and run().
|
private |
Definition at line 188 of file enginemanager.cpp.
References _engine.
Referenced by createEngine(), listLanguages(), reset(), and run().
|
virtual |
Implements Engines::GameInstance.
Definition at line 169 of file enginemanager.cpp.
References _probe, Engines::EngineProbe::getGameName(), Engines::EngineProbe::getPlatform(), and Aurora::getPlatformDescription().
void Engines::GameInstanceEngine::listLanguages | ( | ) |
List all available languages supported by this GameInstance's target.
Definition at line 192 of file enginemanager.cpp.
References _engine, _probe, _target, createEngine(), destroyEngine(), Engines::EngineProbe::getGameID(), Engines::EngineProbe::getPlatform(), info(), and LangMan.
Referenced by Engines::EngineManager::listLanguages().
bool Engines::GameInstanceEngine::probe | ( | const std::list< const EngineProbe *> & | probes | ) |
Find an engine capable of running the game found in the GameInstance's target.
Definition at line 117 of file enginemanager.cpp.
References _target, Common::FileList::addDirectory(), Common::FilePath::isDirectory(), Common::FilePath::isRegularFile(), and Common::ReadFile::open().
|
private |
Definition at line 141 of file enginemanager.cpp.
|
private |
Definition at line 155 of file enginemanager.cpp.
References _probe.
void Engines::GameInstanceEngine::reset | ( | ) |
Reset the GameInstance to a pre-probe state.
Definition at line 112 of file enginemanager.cpp.
References _probe, and destroyEngine().
void Engines::GameInstanceEngine::run | ( | ) |
Run the probed game in the GameInstance's target.
Definition at line 222 of file enginemanager.cpp.
References _engine, _probe, _target, createEngine(), destroyEngine(), Engines::EngineProbe::getGameID(), and Engines::EngineProbe::getPlatform().
Referenced by Engines::EngineManager::run().
|
private |
Definition at line 97 of file enginemanager.cpp.
Referenced by createEngine(), destroyEngine(), listLanguages(), and run().
|
private |
Definition at line 96 of file enginemanager.cpp.
Referenced by createEngine(), getGameName(), listLanguages(), probe(), reset(), and run().
|
private |
Definition at line 94 of file enginemanager.cpp.
Referenced by listLanguages(), probe(), and run().