mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
cleanup
This commit is contained in:
parent
c554f4e2b6
commit
4f20852953
@ -97,7 +97,7 @@ protected:
|
||||
void update() override;
|
||||
|
||||
private:
|
||||
UI::LinearLayout *box_;
|
||||
UI::LinearLayout *box_ = nullptr;
|
||||
UI::Button *defaultButton_ = nullptr;
|
||||
std::string title_;
|
||||
std::string button1_;
|
||||
|
@ -1072,7 +1072,6 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
systemSettings->Add(new CheckBox(&g_Config.bCheckForNewVersion, sy->T("VersionCheck", "Check for new versions of PPSSPP")));
|
||||
|
||||
systemSettings->Add(new Choice(sy->T("Restore Default Settings")))->OnClick.Handle(this, &GameSettingsScreen::OnRestoreDefaultSettings);
|
||||
systemSettings->Add(new CheckBox(&g_Config.bEnableStateUndo, sy->T("Savestate slot backups")));
|
||||
@ -1082,6 +1081,7 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
|
||||
systemSettings->Add(new CheckBox(&g_Config.bBypassOSKWithKeyboard, sy->T("Use system native keyboard")));
|
||||
|
||||
systemSettings->Add(new CheckBox(&g_Config.bCacheFullIsoInRam, sy->T("Cache ISO in RAM", "Cache full ISO in RAM")))->SetEnabled(!PSP_IsInited());
|
||||
systemSettings->Add(new CheckBox(&g_Config.bCheckForNewVersion, sy->T("VersionCheck", "Check for new versions of PPSSPP")));
|
||||
|
||||
systemSettings->Add(new ItemHeader(sy->T("Cheats", "Cheats")));
|
||||
CheckBox *enableCheats = systemSettings->Add(new CheckBox(&g_Config.bEnableCheats, sy->T("Enable Cheats")));
|
||||
|
@ -60,26 +60,26 @@ private:
|
||||
void TriggerRestart(const char *why);
|
||||
|
||||
std::string gameID_;
|
||||
UI::CheckBox *enableReportsCheckbox_;
|
||||
UI::Choice *layoutEditorChoice_;
|
||||
UI::Choice *displayEditor_;
|
||||
UI::CheckBox *enableReportsCheckbox_ = nullptr;
|
||||
UI::Choice *layoutEditorChoice_ = nullptr;
|
||||
UI::Choice *displayEditor_ = nullptr;
|
||||
UI::Choice *backgroundChoice_ = nullptr;
|
||||
UI::PopupMultiChoice *resolutionChoice_;
|
||||
UI::CheckBox *frameSkipAuto_;
|
||||
SettingInfoMessage *settingInfo_;
|
||||
UI::Choice *clearSearchChoice_;
|
||||
UI::TextView *noSearchResults_;
|
||||
UI::PopupMultiChoice *resolutionChoice_ = nullptr;
|
||||
UI::CheckBox *frameSkipAuto_ = nullptr;
|
||||
SettingInfoMessage *settingInfo_ = nullptr;
|
||||
UI::Choice *clearSearchChoice_ = nullptr;
|
||||
UI::TextView *noSearchResults_ = nullptr;
|
||||
#ifdef _WIN32
|
||||
UI::CheckBox *SavePathInMyDocumentChoice;
|
||||
UI::CheckBox *SavePathInOtherChoice;
|
||||
UI::CheckBox *SavePathInMyDocumentChoice = nullptr;
|
||||
UI::CheckBox *SavePathInOtherChoice = nullptr;
|
||||
// Used to enable/disable the above two options.
|
||||
bool installed_;
|
||||
bool otherinstalled_;
|
||||
bool installed_ = false;
|
||||
bool otherinstalled_ = false;
|
||||
#endif
|
||||
|
||||
std::string memstickDisplay_;
|
||||
|
||||
UI::TabHolder *tabHolder_;
|
||||
UI::TabHolder *tabHolder_ = nullptr;
|
||||
std::vector<UI::LinearLayout *> settingTabContents_;
|
||||
std::vector<UI::TextView *> settingTabFilterNotices_;
|
||||
|
||||
@ -135,18 +135,18 @@ private:
|
||||
UI::EventReturn OnClearSearchFilter(UI::EventParams &e);
|
||||
|
||||
// Temporaries to convert setting types, cache enabled, etc.
|
||||
int iAlternateSpeedPercent1_;
|
||||
int iAlternateSpeedPercent2_;
|
||||
int iAlternateSpeedPercentAnalog_;
|
||||
int prevInflightFrames_;
|
||||
int iAlternateSpeedPercent1_ = 0;
|
||||
int iAlternateSpeedPercent2_ = 0;
|
||||
int iAlternateSpeedPercentAnalog_ = 0;
|
||||
int prevInflightFrames_ = -1;
|
||||
bool enableReports_ = false;
|
||||
bool enableReportsSet_ = false;
|
||||
bool analogSpeedMapped_ = false;
|
||||
|
||||
std::string searchFilter_;
|
||||
|
||||
//edit the game-specific settings and restore the global settings after exiting
|
||||
bool editThenRestore_;
|
||||
// edit the game-specific settings and restore the global settings after exiting
|
||||
bool editThenRestore_ = false;
|
||||
|
||||
// Android-only
|
||||
std::string pendingMemstickFolder_;
|
||||
@ -215,6 +215,7 @@ protected:
|
||||
private:
|
||||
void ResolverThread();
|
||||
void SendEditKey(int keyCode, int flags = 0);
|
||||
|
||||
UI::EventReturn OnNumberClick(UI::EventParams &e);
|
||||
UI::EventReturn OnPointClick(UI::EventParams &e);
|
||||
UI::EventReturn OnDeleteClick(UI::EventParams &e);
|
||||
|
Loading…
Reference in New Issue
Block a user