mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-10-07 10:53:31 +00:00
Config: Cleanup a few more settings commonly.
This commit is contained in:
parent
4404b3a5f2
commit
2b3071412e
@ -1433,11 +1433,6 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
vPostShaderNames.push_back(it.second);
|
||||
}
|
||||
|
||||
// This caps the exponent 4 (so 16x.)
|
||||
if (iAnisotropyLevel > 4) {
|
||||
iAnisotropyLevel = 4;
|
||||
}
|
||||
|
||||
// Check for an old dpad setting
|
||||
Section *control = iniFile.GetOrCreateSection("Control");
|
||||
float f;
|
||||
@ -1483,24 +1478,6 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
|
||||
CleanRecent();
|
||||
|
||||
// Set a default MAC, and correct if it's an old format.
|
||||
if (sMACAddress.length() != 17)
|
||||
sMACAddress = CreateRandMAC();
|
||||
|
||||
if (g_Config.bAutoFrameSkip && g_Config.bSkipBufferEffects) {
|
||||
g_Config.bSkipBufferEffects = false;
|
||||
}
|
||||
|
||||
// Automatically silence secondary instances. Could be an option I guess, but meh.
|
||||
if (PPSSPP_ID > 1) {
|
||||
g_Config.iGlobalVolume = 0;
|
||||
}
|
||||
|
||||
// Automatically switch away from deprecated setting value.
|
||||
if (iTexScalingLevel <= 0) {
|
||||
iTexScalingLevel = 1;
|
||||
}
|
||||
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
// The on path here is untested, since we don't expose it.
|
||||
g_Config.bVSync = false;
|
||||
@ -1620,6 +1597,29 @@ void Config::PostLoadCleanup(bool gameSpecific) {
|
||||
jitForcedOff = true;
|
||||
g_Config.iCpuCore = (int)CPUCore::IR_JIT;
|
||||
}
|
||||
|
||||
// This caps the exponent 4 (so 16x.)
|
||||
if (iAnisotropyLevel > 4) {
|
||||
iAnisotropyLevel = 4;
|
||||
}
|
||||
|
||||
// Set a default MAC, and correct if it's an old format.
|
||||
if (sMACAddress.length() != 17)
|
||||
sMACAddress = CreateRandMAC();
|
||||
|
||||
if (g_Config.bAutoFrameSkip && g_Config.bSkipBufferEffects) {
|
||||
g_Config.bSkipBufferEffects = false;
|
||||
}
|
||||
|
||||
// Automatically silence secondary instances. Could be an option I guess, but meh.
|
||||
if (PPSSPP_ID > 1) {
|
||||
g_Config.iGlobalVolume = 0;
|
||||
}
|
||||
|
||||
// Automatically switch away from deprecated setting value.
|
||||
if (iTexScalingLevel <= 0) {
|
||||
iTexScalingLevel = 1;
|
||||
}
|
||||
}
|
||||
|
||||
void Config::PreSaveCleanup(bool gameSpecific) {
|
||||
|
Loading…
Reference in New Issue
Block a user