mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-01 21:56:17 +00:00
Merge pull request #3097 from thedax/patch-1
Fix some translation issues.
This commit is contained in:
commit
e03acc4c58
@ -134,7 +134,7 @@ void Config::Load(const char *iniFileName)
|
||||
sound->Get("Enable", &bEnableSound, true);
|
||||
sound->Get("EnableAtrac3plus", &bEnableAtrac3plus, true);
|
||||
sound->Get("VolumeBGM", &iBGMVolume, 7);
|
||||
sound->Get("VolumeSFX", &iSEVolume, 7);
|
||||
sound->Get("VolumeSFX", &iSFXVolume, 7);
|
||||
|
||||
IniFile::Section *control = iniFile.GetOrCreateSection("Control");
|
||||
control->Get("ShowStick", &bShowAnalogStick, false);
|
||||
@ -260,7 +260,7 @@ void Config::Save()
|
||||
sound->Set("Enable", bEnableSound);
|
||||
sound->Set("EnableAtrac3plus", bEnableAtrac3plus);
|
||||
sound->Set("VolumeBGM", iBGMVolume);
|
||||
sound->Set("VolumeSFX", iSEVolume);
|
||||
sound->Set("VolumeSFX", iSFXVolume);
|
||||
|
||||
IniFile::Section *control = iniFile.GetOrCreateSection("Control");
|
||||
control->Set("ShowStick", bShowAnalogStick);
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
// Sound
|
||||
bool bEnableSound;
|
||||
bool bEnableAtrac3plus;
|
||||
int iSEVolume;
|
||||
int iSFXVolume;
|
||||
int iBGMVolume;
|
||||
|
||||
// UI
|
||||
|
@ -414,7 +414,7 @@ void SasInstance::Mix(u32 outAddr, u32 inAddr, int leftVol, int rightVol) {
|
||||
// Resample to the correct pitch, writing exactly "grainSize" samples.
|
||||
u32 sampleFrac = voice.sampleFrac;
|
||||
const int MAX_CONFIG_VOLUME = 20;
|
||||
int volumeShift = (MAX_CONFIG_VOLUME - g_Config.iSEVolume);
|
||||
int volumeShift = (MAX_CONFIG_VOLUME - g_Config.iSFXVolume);
|
||||
if (volumeShift < 0) volumeShift = 0;
|
||||
for (int i = 0; i < grainSize; i++) {
|
||||
// For now: nearest neighbour, not even using the resample history at all.
|
||||
|
@ -259,7 +259,7 @@ void GameSettingsScreen::CreateViews() {
|
||||
|
||||
audioSettings->Add(new CheckBox(&g_Config.bEnableSound, a->T("Enable Sound")));
|
||||
audioSettings->Add(new CheckBox(&g_Config.bEnableAtrac3plus, a->T("Enable Atrac3+")));
|
||||
audioSettings->Add(new PopupSliderChoice(&g_Config.iSEVolume, 0, 8, a->T("FX volume"), screenManager()));
|
||||
audioSettings->Add(new PopupSliderChoice(&g_Config.iSFXVolume, 0, 8, a->T("SFX volume"), screenManager()));
|
||||
audioSettings->Add(new PopupSliderChoice(&g_Config.iBGMVolume, 0, 8, a->T("BGM volume"), screenManager()));
|
||||
|
||||
// Control
|
||||
@ -336,7 +336,7 @@ void GlobalSettingsScreen::CreateViews() {
|
||||
LinearLayout *list = root_->Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(1.0f)));
|
||||
list->Add(new ItemHeader("General"));
|
||||
list->Add(new CheckBox(&g_Config.bNewUI, gs->T("Enable New UI")));
|
||||
list->Add(new CheckBox(&enableReports_, gs->T("Enable Errors Reporting")));
|
||||
list->Add(new CheckBox(&enableReports_, gs->T("Enable Compatibility Server Reports")));
|
||||
list->Add(new CheckBox(&g_Config.bEnableCheats, gs->T("Enable Cheats")));
|
||||
list->Add(new CheckBox(&g_Config.bScreenshotsAsPNG, gs->T("Screenshots as PNG")));
|
||||
list->Add(new Choice(gs->T("System Language")))->OnClick.Handle(this, &GlobalSettingsScreen::OnLanguage);
|
||||
|
@ -873,7 +873,7 @@ void AudioScreen::render() {
|
||||
|
||||
y+=10;
|
||||
char bgmvol[256];
|
||||
sprintf(bgmvol, "%s %i", a->T("BGM Volume :"), g_Config.iBGMVolume);
|
||||
sprintf(bgmvol, "%s: %i", a->T("BGM Volume"), g_Config.iBGMVolume);
|
||||
ui_draw2d.DrawTextShadow(UBUNTU24, bgmvol, x, y += stride, 0xFFFFFFFF, ALIGN_LEFT);
|
||||
HLinear hlinear1(x + 250, y, 20);
|
||||
if (UIButton(GEN_ID, hlinear1, 80, 0, a->T("Auto"), ALIGN_LEFT))
|
||||
@ -885,18 +885,18 @@ void AudioScreen::render() {
|
||||
if (g_Config.iBGMVolume < 8)
|
||||
g_Config.iBGMVolume += 1;
|
||||
y+=20;
|
||||
char sevol[256];
|
||||
sprintf(sevol, "%s %i", a->T("SE Volume :"), g_Config.iSEVolume);
|
||||
ui_draw2d.DrawTextShadow(UBUNTU24, sevol, x, y += stride, 0xFFFFFFFF, ALIGN_LEFT);
|
||||
char sfxvol[256];
|
||||
sprintf(sfxvol, "%s: %i", a->T("SFX Volume"), g_Config.iSFXVolume);
|
||||
ui_draw2d.DrawTextShadow(UBUNTU24, sfxvol, x, y += stride, 0xFFFFFFFF, ALIGN_LEFT);
|
||||
HLinear hlinear2(x + 250, y, 20);
|
||||
if (UIButton(GEN_ID, hlinear2, 80, 0, a->T("Auto"), ALIGN_LEFT))
|
||||
g_Config.iSEVolume = 3;
|
||||
g_Config.iSFXVolume = 3;
|
||||
if (UIButton(GEN_ID, hlinear2, 50, 0, a->T("-1"), ALIGN_LEFT))
|
||||
if (g_Config.iSEVolume > 1)
|
||||
g_Config.iSEVolume -= 1;
|
||||
if (g_Config.iSFXVolume > 1)
|
||||
g_Config.iSFXVolume -= 1;
|
||||
if (UIButton(GEN_ID, hlinear2, 50, 0, a->T("+1"), ALIGN_LEFT))
|
||||
if (g_Config.iSEVolume < 8)
|
||||
g_Config.iSEVolume += 1;
|
||||
if (g_Config.iSFXVolume < 8)
|
||||
g_Config.iSFXVolume += 1;
|
||||
|
||||
y+=10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user