Disable vertex jit on jailed iOS devices

This commit is contained in:
W.MS/王京
2013-12-02 10:48:52 +01:00
committed by Henrik Rydgård
parent 366d892c46
commit 6d4095abdf
4 changed files with 13 additions and 10 deletions
+7 -3
View File
@@ -41,7 +41,7 @@ http::Downloader g_DownloadManager;
Config g_Config;
#ifdef IOS
extern bool isJailed;
extern bool iosCanUseJit;
#endif
Config::Config() { }
@@ -131,7 +131,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
#ifdef IOS
cpu->Get("Jit", &bJit, !isJailed);
cpu->Get("Jit", &bJit, iosCanUseJit);
#else
cpu->Get("Jit", &bJit, true);
#endif
@@ -179,8 +179,12 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
iAnisotropyLevel = 4;
}
graphics->Get("VertexCache", &bVertexCache, true);
#ifdef IOS
graphics->Get("VertexDecJit", &bVertexDecoderJit, iosCanUseJit);
#else
graphics->Get("VertexDecJit", &bVertexDecoderJit, true);
#endif
#ifdef _WIN32
graphics->Get("FullScreen", &bFullScreen, false);
#endif