Skip to content

Commit

Permalink
After recording a GE dump, open an explorer window pointing at the file
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 16, 2022
1 parent cf23689 commit 2f3cad9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions GPU/Debugger/Record.cpp
Expand Up @@ -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"
Expand Down
13 changes: 11 additions & 2 deletions Windows/GEDebugger/GEDebugger.cpp
Expand Up @@ -21,12 +21,18 @@
#include <string>
#include <vector>

#include <windowsx.h>
#include <commctrl.h>

#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"
Expand All @@ -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"
Expand All @@ -46,8 +53,6 @@
#include "GPU/Debugger/Debugger.h"
#include "GPU/Debugger/Record.h"
#include "GPU/Debugger/Stepping.h"
#include <windowsx.h>
#include <commctrl.h>

using namespace GPUBreakpoints;
using namespace GPUDebug;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2f3cad9

Please sign in to comment.