void GameInstanceEngine::run() { createEngine(); _engine->start(_probe->getGameID(), _target, _probe->getPlatform()); destroyEngine(); }
void GameInstanceEngine::listLanguages() { createEngine(); std::vector<Aurora::Language> langs; if (_engine->detectLanguages(_probe->getGameID(), _target, _probe->getPlatform(), langs)) { if (!langs.empty()) { info("Available languages:"); for (std::vector<Aurora::Language>::iterator l = langs.begin(); l != langs.end(); ++l) info("- %s", LangMan.getLanguageName(*l).c_str()); } } std::vector<Aurora::Language> langsT, langsV; if (_engine->detectLanguages(_probe->getGameID(), _target, _probe->getPlatform(), langsT, langsV)) { if (!langsT.empty()) { info("Available text languages:"); for (std::vector<Aurora::Language>::iterator l = langsT.begin(); l != langsT.end(); ++l) info("- %s", LangMan.getLanguageName(*l).c_str()); } if (!langsV.empty()) { info("Available voice languages:"); for (std::vector<Aurora::Language>::iterator l = langsV.begin(); l != langsV.end(); ++l) info("- %s", LangMan.getLanguageName(*l).c_str()); } } destroyEngine(); }
void GameInstanceEngine::createEngine() { if (!_probe) throw Common::Exception("GameInstanceEngine::createEngine(): No game probed"); destroyEngine(); _engine = _probe->createEngine(); }
void xrSASH::ReleaseEngine() { m_bReinitEngine = true; destroyInput(); Console->Destroy(); destroySound(); destroyEngine(); }
void AndroidAudio::closeAudio() { if(audioEnabled) { destroyEngine(); for (int32_t i = 0; i < mSoundCount; ++i) { qDeleteAll(mSounds); } audioEnabled = false; } }
/* SoundPlayer destructor */ SoundPlayer::~SoundPlayer() { // destroy file descriptor audio player object, and invalidate all associated interfaces if (fdPlayerObject != NULL) { (*fdPlayerObject)->Destroy(fdPlayerObject); fdPlayerObject = NULL; fdPlayerPlay = NULL; fdPlayerSeek = NULL; fdPlayerMuteSolo = NULL; fdPlayerVolume = NULL; } if (acquiredEngineRef) { engineRefs--; if (engineRefs == 0) { destroyEngine(); } } }
void GameInstanceEngine::reset() { destroyEngine(); _probe = 0; }