mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Merge pull request #3791 from unknownbrackets/ui-tweaks
Fix a crash when holding down escape in game
This commit is contained in:
commit
177511d7db
3 files changed
+6
-4
No files matched your search
+4
-2
@@ -691,8 +691,10 @@ void GamePauseScreen::DrawBackground(UIContext &dc) {
|
||||
}
|
||||
|
||||
GamePauseScreen::~GamePauseScreen() {
|
||||
g_Config.iCurrentStateSlot = saveSlots_->GetSelection();
|
||||
g_Config.Save();
|
||||
if (saveSlots_ != NULL) {
|
||||
g_Config.iCurrentStateSlot = saveSlots_->GetSelection();
|
||||
g_Config.Save();
|
||||
}
|
||||
}
|
||||
|
||||
void GamePauseScreen::CreateViews() {
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ private:
|
||||
|
||||
class GamePauseScreen : public UIScreen {
|
||||
public:
|
||||
GamePauseScreen(const std::string &filename) : UIScreen(), gamePath_(filename) {}
|
||||
GamePauseScreen(const std::string &filename) : UIScreen(), gamePath_(filename), saveSlots_(NULL) {}
|
||||
~GamePauseScreen();
|
||||
virtual void key(const KeyInput &key);
|
||||
|
||||
|
||||
+1
-1
Submodule native updated: e508a71213...fabb3f66ea.
Reference in new issue
Block a user