mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Move the logic for loading the json file to the function. Minor cleanup.
This commit is contained in:
1 parent
5815c3e3be
commit
ae15cba56c
3 files changed
+20
-14
No files matched your search
+3
-2
@@ -42,6 +42,7 @@
|
||||
#include "Core/ELF/ParamSFO.h"
|
||||
#include "Core/HLE/sceDisplay.h"
|
||||
#include "Core/HLE/sceUmd.h"
|
||||
#include "Core/HLE/sceNet.h"
|
||||
|
||||
#include "GPU/GPUCommon.h"
|
||||
#include "GPU/GPUState.h"
|
||||
@@ -415,8 +416,8 @@ void GamePauseScreen::CreateViews() {
|
||||
rightColumnItems->Add(new Choice(pa->T("Settings")))->OnClick.Handle(this, &GamePauseScreen::OnGameSettings);
|
||||
rightColumnItems->Add(new Choice(pa->T("Create Game Config")))->OnClick.Handle(this, &GamePauseScreen::OnCreateConfig);
|
||||
}
|
||||
UI::Choice *displayEditor_ = rightColumnItems->Add(new Choice(gr->T("Display layout & effects")));
|
||||
displayEditor_->OnClick.Add([&](UI::EventParams &) -> UI::EventReturn {
|
||||
|
||||
rightColumnItems->Add(new Choice(gr->T("Display layout & effects")))->OnClick.Add([&](UI::EventParams &) -> UI::EventReturn {
|
||||
screenManager()->push(new DisplayLayoutScreen(gamePath_));
|
||||
return UI::EVENT_DONE;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user