mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Setting reorganization, some changed strings, soft drop shadows for text on game screen
This commit is contained in:
1 parent
d5acc2bde1
commit
f9baffccb6
58 files changed
+173
-152
No files matched your search
+40
-21
@@ -177,7 +177,7 @@ static void OnJitAffectingSetting() {
|
||||
static void BuildPSPSettingsPage(SettingsPage *page) {
|
||||
SettingsPageHost *host = page->Host();
|
||||
|
||||
page->Header("PSP Settings");
|
||||
page->Header("PSP system settings");
|
||||
|
||||
// The ordering here is simply mapping directly to PSP_SYSTEMPARAM_LANGUAGE_*.
|
||||
page->Setting(&g_Config.iLanguage);
|
||||
@@ -187,9 +187,9 @@ static void BuildPSPSettingsPage(SettingsPage *page) {
|
||||
page->Custom("Nickname", [host](UI::ViewGroup *parent) {
|
||||
return AddNicknameChoice(host, parent);
|
||||
});
|
||||
page->Setting(&g_Config.bDayLightSavings);
|
||||
page->Setting(&g_Config.iDateFormat);
|
||||
page->Setting(&g_Config.iTimeFormat);
|
||||
page->Setting(&g_Config.bDayLightSavings);
|
||||
page->Setting(&g_Config.iButtonPreference);
|
||||
}
|
||||
|
||||
@@ -199,9 +199,44 @@ void BuildSystemSettings(SettingsPage *page, SystemPageState *state) {
|
||||
SettingsPageHost *host = page->Host();
|
||||
|
||||
page->Header();
|
||||
page->Link({I18NCat::SYSTEM, "PSP Settings"}, I18NCat::SYSTEM, &BuildPSPSettingsPage);
|
||||
page->Link({I18NCat::SYSTEM, "PSP system settings"}, I18NCat::SYSTEM, &BuildPSPSettingsPage);
|
||||
|
||||
page->Header("PSP Memory Stick");
|
||||
page->Header("Cheats");
|
||||
page->Setting(&g_Config.bEnableCheats);
|
||||
page->Setting(&g_Config.bEnablePlugins);
|
||||
|
||||
page->Header("Emulation");
|
||||
|
||||
page->Setting(&g_Config.bFastMemory).OnChange([](UI::EventParams &e) {
|
||||
OnJitAffectingSetting();
|
||||
});
|
||||
page->Setting(&g_Config.bIgnoreBadMemAccess);
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_ENOUGH_RAM_FOR_FULL_ISO)) {
|
||||
page->Setting(&g_Config.bCacheFullIsoInRam).EnabledFunc([] {
|
||||
return !PSP_IsInited();
|
||||
});
|
||||
}
|
||||
|
||||
page->Setting(&g_Config.iIOTimingMethod);
|
||||
page->Setting(&g_Config.bForceLagSync).Disabled(&g_Config.bAutoFrameSkip);
|
||||
page->Setting(&g_Config.iLockedCPUSpeed);
|
||||
|
||||
page->Header({I18NCat::SAVEDATA, "Save states"}); // Borrow this string from the savedata manager
|
||||
|
||||
page->Setting(&g_Config.bEnableStateUndo);
|
||||
page->Setting(&g_Config.bConfirmLoadState);
|
||||
|
||||
page->Setting(&g_Config.iSaveStateSlotCount);
|
||||
|
||||
// NOTE: We will soon support more states, but we'll keep this niche feature limited to the first five.
|
||||
page->Setting(&g_Config.iAutoLoadSaveState).Setup([](View *view) {
|
||||
if (g_Config.iAutoLoadSaveState != 1) {
|
||||
static_cast<PopupMultiChoice *>(view)->HideChoice(1); // Hide "Oldest Save" if not using that mode. It doesn't make sense.
|
||||
}
|
||||
});
|
||||
|
||||
page->Header("PSP storage settings");
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_HAS_OPEN_DIRECTORY)) {
|
||||
page->Choice("Show Memory Stick folder").OnClick([](UI::EventParams &p) {
|
||||
@@ -262,24 +297,8 @@ void BuildSystemSettings(SettingsPage *page, SystemPageState *state) {
|
||||
page->Setting(&g_Config.bMemStickInserted);
|
||||
page->Setting(&g_Config.iMemStickSizeGB);
|
||||
|
||||
page->Header("Emulation");
|
||||
|
||||
page->Setting(&g_Config.bFastMemory).OnChange([](UI::EventParams &e) {
|
||||
OnJitAffectingSetting();
|
||||
});
|
||||
page->Setting(&g_Config.bIgnoreBadMemAccess);
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_ENOUGH_RAM_FOR_FULL_ISO)) {
|
||||
page->Setting(&g_Config.bCacheFullIsoInRam).EnabledFunc([] {
|
||||
return !PSP_IsInited();
|
||||
});
|
||||
}
|
||||
|
||||
page->Setting(&g_Config.iIOTimingMethod);
|
||||
page->Setting(&g_Config.bForceLagSync).Disabled(&g_Config.bAutoFrameSkip);
|
||||
page->Setting(&g_Config.iLockedCPUSpeed);
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
|
||||
page->Header("Recording");
|
||||
page->Setting(&g_Config.bDumpFrames);
|
||||
page->Setting(&g_Config.bDumpVideoOutput);
|
||||
|
||||
Reference in new issue
Block a user