mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 14:41:39 +00:00
Move the memstick options higher on the System tab. Other minor tweaks
This commit is contained in:
parent
76df060349
commit
76f2fe60ac
@ -892,33 +892,6 @@ void GameSettingsScreen::CreateViews() {
|
|||||||
static const char *backgroundAnimations[] = { "No animation", "Floating symbols", "Recent games", "Waves", "Moving background" };
|
static const char *backgroundAnimations[] = { "No animation", "Floating symbols", "Recent games", "Waves", "Moving background" };
|
||||||
systemSettings->Add(new PopupMultiChoice(&g_Config.iBackgroundAnimation, sy->T("UI background animation"), backgroundAnimations, 0, ARRAY_SIZE(backgroundAnimations), sy->GetName(), screenManager()));
|
systemSettings->Add(new PopupMultiChoice(&g_Config.iBackgroundAnimation, sy->T("UI background animation"), backgroundAnimations, 0, ARRAY_SIZE(backgroundAnimations), sy->GetName(), screenManager()));
|
||||||
|
|
||||||
systemSettings->Add(new ItemHeader(sy->T("Help the PPSSPP team")));
|
|
||||||
if (!enableReportsSet_)
|
|
||||||
enableReports_ = Reporting::IsEnabled();
|
|
||||||
enableReportsSet_ = true;
|
|
||||||
enableReportsCheckbox_ = new CheckBox(&enableReports_, sy->T("Enable Compatibility Server Reports"));
|
|
||||||
enableReportsCheckbox_->SetEnabled(Reporting::IsSupported());
|
|
||||||
systemSettings->Add(enableReportsCheckbox_);
|
|
||||||
|
|
||||||
systemSettings->Add(new ItemHeader(sy->T("Emulation")));
|
|
||||||
|
|
||||||
systemSettings->Add(new CheckBox(&g_Config.bFastMemory, sy->T("Fast Memory", "Fast Memory")))->OnClick.Handle(this, &GameSettingsScreen::OnJitAffectingSetting);
|
|
||||||
systemSettings->Add(new CheckBox(&g_Config.bIgnoreBadMemAccess, sy->T("Ignore bad memory accesses")));
|
|
||||||
|
|
||||||
systemSettings->Add(new CheckBox(&g_Config.bSeparateIOThread, sy->T("I/O on thread (experimental)")))->SetEnabled(!PSP_IsInited());
|
|
||||||
static const char *ioTimingMethods[] = { "Fast (lag on slow storage)", "Host (bugs, less lag)", "Simulate UMD delays" };
|
|
||||||
View *ioTimingMethod = systemSettings->Add(new PopupMultiChoice(&g_Config.iIOTimingMethod, sy->T("IO timing method"), ioTimingMethods, 0, ARRAY_SIZE(ioTimingMethods), sy->GetName(), screenManager()));
|
|
||||||
ioTimingMethod->SetEnabledPtr(&g_Config.bSeparateIOThread);
|
|
||||||
systemSettings->Add(new CheckBox(&g_Config.bForceLagSync, sy->T("Force real clock sync (slower, less lag)")));
|
|
||||||
PopupSliderChoice *lockedMhz = systemSettings->Add(new PopupSliderChoice(&g_Config.iLockedCPUSpeed, 0, 1000, sy->T("Change CPU Clock", "Change CPU Clock (unstable)"), screenManager(), sy->T("MHz, 0:default")));
|
|
||||||
lockedMhz->OnChange.Add([&](UI::EventParams &) {
|
|
||||||
enableReportsCheckbox_->SetEnabled(Reporting::IsSupported());
|
|
||||||
return UI::EVENT_CONTINUE;
|
|
||||||
});
|
|
||||||
lockedMhz->SetZeroLabel(sy->T("Auto"));
|
|
||||||
PopupSliderChoice *rewindFreq = systemSettings->Add(new PopupSliderChoice(&g_Config.iRewindFlipFrequency, 0, 1800, sy->T("Rewind Snapshot Frequency", "Rewind Snapshot Frequency (mem hog)"), screenManager(), sy->T("frames, 0:off")));
|
|
||||||
rewindFreq->SetZeroLabel(sy->T("Off"));
|
|
||||||
|
|
||||||
systemSettings->Add(new ItemHeader(sy->T("PSP Memory Stick")));
|
systemSettings->Add(new ItemHeader(sy->T("PSP Memory Stick")));
|
||||||
|
|
||||||
#if PPSSPP_PLATFORM(ANDROID)
|
#if PPSSPP_PLATFORM(ANDROID)
|
||||||
@ -973,6 +946,33 @@ void GameSettingsScreen::CreateViews() {
|
|||||||
systemSettings->Add(new CheckBox(&g_Config.bMemStickInserted, sy->T("Memory Stick inserted")));
|
systemSettings->Add(new CheckBox(&g_Config.bMemStickInserted, sy->T("Memory Stick inserted")));
|
||||||
systemSettings->Add(new PopupSliderChoice(&g_Config.iMemStickSizeGB, 1, 32, sy->T("Change Memory Stick Size", "Memory Stick Size (GB)"), screenManager(), "GB"));
|
systemSettings->Add(new PopupSliderChoice(&g_Config.iMemStickSizeGB, 1, 32, sy->T("Change Memory Stick Size", "Memory Stick Size (GB)"), screenManager(), "GB"));
|
||||||
|
|
||||||
|
systemSettings->Add(new ItemHeader(sy->T("Help the PPSSPP team")));
|
||||||
|
if (!enableReportsSet_)
|
||||||
|
enableReports_ = Reporting::IsEnabled();
|
||||||
|
enableReportsSet_ = true;
|
||||||
|
enableReportsCheckbox_ = new CheckBox(&enableReports_, sy->T("Enable Compatibility Server Reports"));
|
||||||
|
enableReportsCheckbox_->SetEnabled(Reporting::IsSupported());
|
||||||
|
systemSettings->Add(enableReportsCheckbox_);
|
||||||
|
|
||||||
|
systemSettings->Add(new ItemHeader(sy->T("Emulation")));
|
||||||
|
|
||||||
|
systemSettings->Add(new CheckBox(&g_Config.bFastMemory, sy->T("Fast Memory", "Fast Memory")))->OnClick.Handle(this, &GameSettingsScreen::OnJitAffectingSetting);
|
||||||
|
systemSettings->Add(new CheckBox(&g_Config.bIgnoreBadMemAccess, sy->T("Ignore bad memory accesses")));
|
||||||
|
|
||||||
|
systemSettings->Add(new CheckBox(&g_Config.bSeparateIOThread, sy->T("I/O on thread (experimental)")))->SetEnabled(!PSP_IsInited());
|
||||||
|
static const char *ioTimingMethods[] = { "Fast (lag on slow storage)", "Host (bugs, less lag)", "Simulate UMD delays" };
|
||||||
|
View *ioTimingMethod = systemSettings->Add(new PopupMultiChoice(&g_Config.iIOTimingMethod, sy->T("IO timing method"), ioTimingMethods, 0, ARRAY_SIZE(ioTimingMethods), sy->GetName(), screenManager()));
|
||||||
|
ioTimingMethod->SetEnabledPtr(&g_Config.bSeparateIOThread);
|
||||||
|
systemSettings->Add(new CheckBox(&g_Config.bForceLagSync, sy->T("Force real clock sync (slower, less lag)")));
|
||||||
|
PopupSliderChoice *lockedMhz = systemSettings->Add(new PopupSliderChoice(&g_Config.iLockedCPUSpeed, 0, 1000, sy->T("Change CPU Clock", "Change CPU Clock (unstable)"), screenManager(), sy->T("MHz, 0:default")));
|
||||||
|
lockedMhz->OnChange.Add([&](UI::EventParams &) {
|
||||||
|
enableReportsCheckbox_->SetEnabled(Reporting::IsSupported());
|
||||||
|
return UI::EVENT_CONTINUE;
|
||||||
|
});
|
||||||
|
lockedMhz->SetZeroLabel(sy->T("Auto"));
|
||||||
|
PopupSliderChoice *rewindFreq = systemSettings->Add(new PopupSliderChoice(&g_Config.iRewindFlipFrequency, 0, 1800, sy->T("Rewind Snapshot Frequency", "Rewind Snapshot Frequency (mem hog)"), screenManager(), sy->T("frames, 0:off")));
|
||||||
|
rewindFreq->SetZeroLabel(sy->T("Off"));
|
||||||
|
|
||||||
systemSettings->Add(new ItemHeader(sy->T("General")));
|
systemSettings->Add(new ItemHeader(sy->T("General")));
|
||||||
|
|
||||||
#if PPSSPP_PLATFORM(ANDROID)
|
#if PPSSPP_PLATFORM(ANDROID)
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include "UI/MiscScreens.h"
|
#include "UI/MiscScreens.h"
|
||||||
|
|
||||||
static bool FolderSeemsToBeUsed(Path newMemstickFolder) {
|
static bool FolderSeemsToBeUsed(Path newMemstickFolder) {
|
||||||
// Inspect the potential new folder.
|
// Inspect the potential new folder, quickly.
|
||||||
if (File::Exists(newMemstickFolder / "PSP/SAVEDATA") || File::Exists(newMemstickFolder / "SAVEDATA")) {
|
if (File::Exists(newMemstickFolder / "PSP/SAVEDATA") || File::Exists(newMemstickFolder / "SAVEDATA")) {
|
||||||
// Does seem likely. We could add more criteria like checking for actual savegames or something.
|
// Does seem likely. We could add more criteria like checking for actual savegames or something.
|
||||||
return true;
|
return true;
|
||||||
@ -130,7 +130,7 @@ void MemStickScreen::CreateViews() {
|
|||||||
leftColumn->Add(new Spacer(new LinearLayoutParams(FILL_PARENT, 12.0f, 0.0f)));
|
leftColumn->Add(new Spacer(new LinearLayoutParams(FILL_PARENT, 12.0f, 0.0f)));
|
||||||
}
|
}
|
||||||
|
|
||||||
leftColumn->Add(new TextView(iz->T("MemoryStickDescription", "Choose PSP data storage (Memory Stick):"), ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(iz->T("MemoryStickDescription", "Choose PSP data storage (Memory Stick)"), ALIGN_LEFT, false));
|
||||||
|
|
||||||
// For legacy Android systems, so you can switch back to the old ways if you move to SD or something.
|
// For legacy Android systems, so you can switch back to the old ways if you move to SD or something.
|
||||||
// TODO: Gonna need a scroll view.
|
// TODO: Gonna need a scroll view.
|
||||||
@ -148,7 +148,7 @@ void MemStickScreen::CreateViews() {
|
|||||||
bool storageBrowserWorking = System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 29;
|
bool storageBrowserWorking = System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 29;
|
||||||
|
|
||||||
if (storageBrowserWorking) {
|
if (storageBrowserWorking) {
|
||||||
leftColumn->Add(new Choice(iz->T("Create or Choose a PSP folder")))->OnClick.Handle(this, &MemStickScreen::OnBrowse);
|
leftColumn->Add(new Button(iz->T("Create or Choose a PSP folder")))->OnClick.Handle(this, &MemStickScreen::OnBrowse);
|
||||||
leftColumn->Add(new TextView(iz->T("DataWillStay", "Data will stay even if you uninstall PPSSPP.")))->SetBullet(true);
|
leftColumn->Add(new TextView(iz->T("DataWillStay", "Data will stay even if you uninstall PPSSPP.")))->SetBullet(true);
|
||||||
leftColumn->Add(new TextView(iz->T("DataCanBeShared", "Data can be shared between PPSSPP regular/Gold.")))->SetBullet(true);
|
leftColumn->Add(new TextView(iz->T("DataCanBeShared", "Data can be shared between PPSSPP regular/Gold.")))->SetBullet(true);
|
||||||
leftColumn->Add(new TextView(iz->T("EasyUSBAccess", "Easy USB access")))->SetBullet(true);
|
leftColumn->Add(new TextView(iz->T("EasyUSBAccess", "Easy USB access")))->SetBullet(true);
|
||||||
@ -411,7 +411,7 @@ void ConfirmMemstickMoveScreen::CreateViews() {
|
|||||||
free_disk_space(newMemstickFolder_, freeSpaceNew);
|
free_disk_space(newMemstickFolder_, freeSpaceNew);
|
||||||
free_disk_space(oldMemstickFolder, freeSpaceOld);
|
free_disk_space(oldMemstickFolder, freeSpaceOld);
|
||||||
|
|
||||||
leftColumn->Add(new TextView(iz->T("New PSP Data Folder"), ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(iz->T("Selected PSP Data Folder"), ALIGN_LEFT, false));
|
||||||
if (!initialSetup_) {
|
if (!initialSetup_) {
|
||||||
leftColumn->Add(new TextView(iz->T("PPSSPP will restart after the change."), ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(iz->T("PPSSPP will restart after the change."), ALIGN_LEFT, false));
|
||||||
}
|
}
|
||||||
@ -419,7 +419,7 @@ void ConfirmMemstickMoveScreen::CreateViews() {
|
|||||||
std::string newFreeSpaceText = std::string(iz->T("Free space")) + ": " + FormatSpaceString(freeSpaceNew);
|
std::string newFreeSpaceText = std::string(iz->T("Free space")) + ": " + FormatSpaceString(freeSpaceNew);
|
||||||
leftColumn->Add(new TextView(newFreeSpaceText, ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(newFreeSpaceText, ALIGN_LEFT, false));
|
||||||
if (existingFilesInNewFolder_) {
|
if (existingFilesInNewFolder_) {
|
||||||
leftColumn->Add(new TextView(iz->T("Already contains data."), ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(iz->T("Already contains PSP data."), ALIGN_LEFT, false));
|
||||||
if (!moveData_) {
|
if (!moveData_) {
|
||||||
leftColumn->Add(new TextView(iz->T("No data will be changed."), ALIGN_LEFT, false));
|
leftColumn->Add(new TextView(iz->T("No data will be changed."), ALIGN_LEFT, false));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user