Skip to content

Commit

Permalink
GE Debugger: Add record button.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Jun 4, 2017
1 parent 883c4e8 commit 37e96c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Windows/GEDebugger/GEDebugger.cpp
Expand Up @@ -36,6 +36,7 @@
#include "GPU/Common/GPUStateUtils.h"
#include "GPU/GPUState.h"
#include "GPU/Debugger/Breakpoints.h"
#include "GPU/Debugger/Record.h"
#include "GPU/Debugger/Stepping.h"
#include "Core/Config.h"
#include <windowsx.h>
Expand Down Expand Up @@ -706,6 +707,10 @@ BOOL CGEDebugger::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) {
breakNext = BREAK_NONE;
break;

case IDC_GEDBG_RECORD:
GPURecord::Activate();
break;

case IDC_GEDBG_FORCEOPAQUE:
if (attached && gpuDebug != nullptr) {
forceOpaque_ = SendMessage(GetDlgItem(m_hDlg, IDC_GEDBG_FORCEOPAQUE), BM_GETCHECK, 0, 0) != 0;
Expand Down
1 change: 1 addition & 0 deletions Windows/ppsspp.rc
Expand Up @@ -176,6 +176,7 @@ BEGIN
PUSHBUTTON "Step &Prim",IDC_GEDBG_STEPPRIM,166,2,48,14
PUSHBUTTON "Step &Into",IDC_GEDBG_STEP,218,2,48,14
PUSHBUTTON "&Resume",IDC_GEDBG_RESUME,270,2,48,14
PUSHBUTTON "Rec&ord",IDC_GEDBG_RECORD,440,2,48,14
CONTROL "",IDC_GEDBG_TEX,"SimpleGLWindow",WS_CHILD | WS_VISIBLE,10,20,128,128
CONTROL "",IDC_GEDBG_FRAME,"SimpleGLWindow",WS_CHILD | WS_VISIBLE,148,20,256,136
CONTROL "",IDC_GEDBG_MAINTAB,"SysTabControl32",TCS_TABS | TCS_FOCUSNEVER,10,216,480,180
Expand Down
1 change: 1 addition & 0 deletions Windows/resource.h
Expand Up @@ -333,6 +333,7 @@
#define ID_FILE_USEFFV1 40166
#define ID_FILE_DUMPAUDIO 40167
#define ID_HELP_GITHUB 40168
#define IDC_GEDBG_RECORD 40169

// Dummy option to let the buffered rendering hotkey cycle through all the options.
#define ID_OPTIONS_BUFFEREDRENDERINGDUMMY 40500
Expand Down

0 comments on commit 37e96c9

Please sign in to comment.