From 3999ee80f94e6734acc51b3a181a745f9be9501b Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Fri, 3 Apr 2020 04:03:02 +0200 Subject: [PATCH] strings: Add the performance warning to the translatable strings --- .../features/settings/model/view/CheckBoxSetting.java | 4 +++- src/android/app/src/main/res/values/strings.xml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/android/app/src/main/java/org/citra/citra_emu/features/settings/model/view/CheckBoxSetting.java b/src/android/app/src/main/java/org/citra/citra_emu/features/settings/model/view/CheckBoxSetting.java index daff80917..793346728 100644 --- a/src/android/app/src/main/java/org/citra/citra_emu/features/settings/model/view/CheckBoxSetting.java +++ b/src/android/app/src/main/java/org/citra/citra_emu/features/settings/model/view/CheckBoxSetting.java @@ -1,5 +1,7 @@ package org.citra.citra_emu.features.settings.model.view; +import org.citra.citra_emu.CitraApplication; +import org.citra.citra_emu.R; import org.citra.citra_emu.features.settings.model.IntSetting; import org.citra.citra_emu.features.settings.model.Setting; import org.citra.citra_emu.features.settings.ui.SettingsFragmentView; @@ -43,7 +45,7 @@ public final class CheckBoxSetting extends SettingsItem { public IntSetting setChecked(boolean checked) { // Show a performance warning if the setting has been disabled if (mShowPerformanceWarning && !checked) { - mView.showToastMessage("Turning off this setting will significantly reduce emulation performance! For the best experience, it is recommended that you leave this setting enabled.", true); + mView.showToastMessage(CitraApplication.getAppContext().getString(R.string.performance_warning), true); } if (getSetting() == null) { diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml index 0300edfea..584b81a65 100644 --- a/src/android/app/src/main/res/values/strings.xml +++ b/src/android/app/src/main/res/values/strings.xml @@ -58,13 +58,14 @@ Enable hardware shader Uses hardware to emulate 3DS shaders. When enabled, game performance will be significantly improved. Enable accurate shader multiplication - Uses more accurate multiplication in hardware shaders, which may fix some graphical bugs. When enabled, performance will be reduced.> + Uses more accurate multiplication in hardware shaders, which may fix some graphical bugs. When enabled, performance will be reduced. Enable limit speed When enabled, emulation speed will be limited to a specified percentage of normal speed. Limit speed percent Specifies the percentage to limit emulation speed. With the default of 100% emulation will be limited to normal speed. Values higher or lower will increase or decrease the speed limit. Internal resolution Specifies the resolution used to render at. A high resolution will improve visual quality a lot but is also quite heavy on performance and might cause glitches in certain games. + Turning off this setting will significantly reduce emulation performance! For the best experience, it is recommended that you leave this setting enabled. Enable audio stretching