mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Add UI volume setting (affecting navigation sounds and preview audio). Convert alt speed volume into a 100-step percentage.
This commit is contained in:
1 parent
a9791699ef
commit
cf90b24431
61 files changed
+142
-117
No files matched your search
+10
-7
@@ -752,8 +752,9 @@ static const ConfigSetting soundSettings[] = {
|
||||
|
||||
ConfigSetting("GlobalVolume", &g_Config.iGameVolume, VOLUME_FULL, CfgFlag::PER_GAME),
|
||||
ConfigSetting("ReverbVolume", &g_Config.iReverbVolume, VOLUME_FULL, CfgFlag::PER_GAME),
|
||||
ConfigSetting("AltSpeedVolume", &g_Config.iAltSpeedVolume, -1, CfgFlag::PER_GAME),
|
||||
ConfigSetting("AltSpeedRelativeVolume", &g_Config.iAltSpeedVolume, VOLUMEHI_FULL, CfgFlag::PER_GAME),
|
||||
ConfigSetting("AchievementSoundVolume", &g_Config.iAchievementSoundVolume, 6, CfgFlag::PER_GAME),
|
||||
ConfigSetting("UIVolume", &g_Config.iUIVolume, 70, CfgFlag::DEFAULT),
|
||||
|
||||
ConfigSetting("AudioDevice", &g_Config.sAudioDevice, "", CfgFlag::DEFAULT),
|
||||
ConfigSetting("AutoAudioDevice", &g_Config.bAutoAudioDevice, true, CfgFlag::DEFAULT),
|
||||
@@ -1295,12 +1296,14 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
vPostShaderNames.push_back(it.second);
|
||||
}
|
||||
|
||||
// Check for an old dpad setting
|
||||
Section *control = iniFile.GetOrCreateSection("Control");
|
||||
float f;
|
||||
control->Get("DPadRadius", &f, 0.0f);
|
||||
if (f > 0.0f) {
|
||||
ResetControlLayout();
|
||||
// Check for an old dpad setting (very obsolete)
|
||||
Section *control = iniFile.GetSection("Control");
|
||||
if (control) {
|
||||
float f;
|
||||
control->Get("DPadRadius", &f, 0.0f);
|
||||
if (f > 0.0f) {
|
||||
ResetControlLayout();
|
||||
}
|
||||
}
|
||||
|
||||
// Force JIT setting to a valid value for the current system configuration.
|
||||
|
||||
Reference in new issue
Block a user