UI: Minor pause screen cleanup.

This commit is contained in:
Unknown W. Brackets 2017-11-23 09:08:39 -08:00
parent 3431653791
commit 03ac79caba
2 changed files with 4 additions and 8 deletions

View file

@ -172,8 +172,8 @@ private:
UI::EventReturn OnSaveState(UI::EventParams &e);
UI::EventReturn OnLoadState(UI::EventParams &e);
UI::Button *saveStateButton_;
UI::Button *loadStateButton_;
UI::Button *saveStateButton_ = nullptr;
UI::Button *loadStateButton_ = nullptr;
int slot_;
std::string gamePath_;

View file

@ -27,7 +27,7 @@
class GamePauseScreen : public UIDialogScreenWithGameBackground {
public:
GamePauseScreen(const std::string &filename) : UIDialogScreenWithGameBackground(filename), finishNextFrame_(false), gamePath_(filename) {}
GamePauseScreen(const std::string &filename) : UIDialogScreenWithGameBackground(filename), gamePath_(filename) {}
virtual ~GamePauseScreen();
virtual void dialogFinished(const Screen *dialog, DialogResult dr) override;
@ -39,7 +39,6 @@ protected:
void CallbackDeleteConfig(bool yes);
private:
UI::EventReturn OnMainSettings(UI::EventParams &e);
UI::EventReturn OnGameSettings(UI::EventParams &e);
UI::EventReturn OnExitToMenu(UI::EventParams &e);
UI::EventReturn OnReportFeedback(UI::EventParams &e);
@ -55,11 +54,8 @@ private:
UI::EventReturn OnSwitchUMD(UI::EventParams &e);
UI::EventReturn OnState(UI::EventParams &e);
UI::Choice *saveStateButton_;
UI::Choice *loadStateButton_;
// hack
bool finishNextFrame_;
bool finishNextFrame_ = false;
std::string gamePath_;
};