mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
UI: Zero initialize EventParams in typical usage.
Better to be safe.
This commit is contained in:
1 parent
31e831a564
commit
4fb8ac96ce
9 files changed
+29
-26
No files matched your search
+3
-3
@@ -242,7 +242,7 @@ static void AfterSaveStateAction(bool status, const std::string &message, void *
|
||||
UI::EventReturn SaveSlotView::OnLoadState(UI::EventParams &e) {
|
||||
g_Config.iCurrentStateSlot = slot_;
|
||||
SaveState::LoadSlot(gamePath_, slot_, &AfterSaveStateAction);
|
||||
UI::EventParams e2;
|
||||
UI::EventParams e2{};
|
||||
e2.v = this;
|
||||
OnStateLoaded.Trigger(e2);
|
||||
return UI::EVENT_DONE;
|
||||
@@ -251,14 +251,14 @@ UI::EventReturn SaveSlotView::OnLoadState(UI::EventParams &e) {
|
||||
UI::EventReturn SaveSlotView::OnSaveState(UI::EventParams &e) {
|
||||
g_Config.iCurrentStateSlot = slot_;
|
||||
SaveState::SaveSlot(gamePath_, slot_, &AfterSaveStateAction);
|
||||
UI::EventParams e2;
|
||||
UI::EventParams e2{};
|
||||
e2.v = this;
|
||||
OnStateSaved.Trigger(e2);
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
UI::EventReturn SaveSlotView::OnScreenshotClick(UI::EventParams &e) {
|
||||
UI::EventParams e2;
|
||||
UI::EventParams e2{};
|
||||
e2.v = this;
|
||||
OnScreenshotClicked.Trigger(e2);
|
||||
return UI::EVENT_DONE;
|
||||
|
||||
Reference in new issue
Block a user