Add DevMenu to the three dots menu on the pause screen

This commit is contained in:
Henrik Rydgård
2026-06-05 17:19:06 +02:00
parent 84677d4cb5
commit 78a6bd7157
+5 -1
View File
@@ -55,6 +55,7 @@
#include "GPU/GPUCommon.h"
#include "GPU/GPUState.h"
#include "UI/DevScreens.h"
#include "UI/EmuScreen.h"
#include "UI/PauseScreen.h"
#include "UI/LoadStateConfirmScreen.h"
@@ -795,7 +796,10 @@ void GamePauseScreen::ShowContextMenu(UI::View *menuButton, bool portrait) {
finishNextFrame_ = true;
}
});
auto dev = GetI18NCategory(I18NCat::DEVELOPER);
parent->Add(new Choice(dev->T("DevMenu"), ImageID("I_DEBUGGER")))->OnClick.Add([this](UI::EventParams &e) {
screenManager()->push(new DevMenuScreen(gamePath_, I18NCat::DEVELOPER));
});
if (portrait) {
AddExtraOptions(parent);
}