From 2f3cad9964975d4715aefe44004aaa1dc1963f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 16 Aug 2022 21:54:36 +0200 Subject: [PATCH] After recording a GE dump, open an explorer window pointing at the file --- GPU/Debugger/Record.cpp | 1 + Windows/GEDebugger/GEDebugger.cpp | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/GPU/Debugger/Record.cpp b/GPU/Debugger/Record.cpp index 100e0dd3c4ed..0a15fb8f436e 100644 --- a/GPU/Debugger/Record.cpp +++ b/GPU/Debugger/Record.cpp @@ -29,6 +29,7 @@ #include "Common/Thread/ParallelLoop.h" #include "Common/Log.h" #include "Common/StringUtils.h" +#include "Common/System/System.h" #include "Core/Core.h" #include "Core/ELF/ParamSFO.h" diff --git a/Windows/GEDebugger/GEDebugger.cpp b/Windows/GEDebugger/GEDebugger.cpp index 15460191248e..60ae3a0b3bb5 100644 --- a/Windows/GEDebugger/GEDebugger.cpp +++ b/Windows/GEDebugger/GEDebugger.cpp @@ -21,12 +21,18 @@ #include #include +#include +#include + #include "Common/Data/Convert/ColorConv.h" #include "Common/Data/Encoding/Utf8.h" #include "Common/Data/Text/Parsers.h" #include "Common/StringUtils.h" +#include "Common/System/System.h" + #include "Core/Config.h" #include "Core/Screenshot.h" + #include "Windows/GEDebugger/GEDebugger.h" #include "Windows/GEDebugger/SimpleGLWindow.h" #include "Windows/GEDebugger/CtrlDisplayListView.h" @@ -38,6 +44,7 @@ #include "Windows/InputBox.h" #include "Windows/MainWindow.h" #include "Windows/main.h" + #include "GPU/GPUInterface.h" #include "GPU/Common/GPUDebugInterface.h" #include "GPU/Common/GPUStateUtils.h" @@ -46,8 +53,6 @@ #include "GPU/Debugger/Debugger.h" #include "GPU/Debugger/Record.h" #include "GPU/Debugger/Stepping.h" -#include -#include using namespace GPUBreakpoints; using namespace GPUDebug; @@ -1048,6 +1053,10 @@ BOOL CGEDebugger::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) { break; case IDC_GEDBG_RECORD: + GPURecord::SetCallback([](const Path &path) { + // Opens a Windows Explorer window with the file. + OpenDirectory(path.c_str()); + }); GPURecord::Activate(); break;