mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Screenshot code cleanup, fix issue where the notification would be in a second fast screenshot
Fixes #22497
This commit is contained in:
1 parent
c51daff839
commit
7572ac05ca
7 files changed
+9
-16
No files matched your search
@@ -11,10 +11,12 @@
|
||||
#include "Common/Log/LogManager.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
#include "Common/Data/Text/I18n.h"
|
||||
#include "Common/System/NativeApp.h"
|
||||
#include "Core/RetroAchievements.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/System.h"
|
||||
#include "Core/SaveState.h"
|
||||
#include "Core/Screenshot.h"
|
||||
#include "Core/WebServer.h"
|
||||
#include "Core/Debugger/MemBlockInfo.h"
|
||||
#include "Core/Debugger/LineInfo.h"
|
||||
@@ -72,7 +74,6 @@
|
||||
#include "UI/GameInfoCache.h"
|
||||
#include "UI/PauseScreen.h"
|
||||
|
||||
extern bool g_TakeScreenshot;
|
||||
static ImVec4 g_normalTextColor;
|
||||
|
||||
void ShowInMemoryViewerMenuItem(uint32_t addr, ImControl &control) {
|
||||
@@ -2642,7 +2643,7 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug, GPUCommon *gpuDebug, Draw:
|
||||
ImGui::MenuItem("Auto save/load symbols (PSP/SYSTEM/SYMBOLS)", nullptr, &g_Config.bAutoSaveLoadSymbols);
|
||||
ImGui::Separator();
|
||||
if (ImGui::MenuItem("Take screenshot")) {
|
||||
g_TakeScreenshot = true;
|
||||
TakeUserScreenshot();
|
||||
}
|
||||
ImGui::MenuItem("Save screenshot as .png", nullptr, &g_Config.bScreenshotsAsPNG);
|
||||
if (ImGui::MenuItem("Restart graphics")) {
|
||||
|
||||
Reference in new issue
Block a user