2013-09-22 17:27:09 +00:00
|
|
|
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/CommonWindows.h"
|
|
|
|
#include "Globals.h"
|
|
|
|
#include "Windows/resource.h"
|
|
|
|
#include "Windows/W32Util/DialogManager.h"
|
2013-09-28 18:57:02 +00:00
|
|
|
#include "Windows/W32Util/TabControl.h"
|
2013-09-23 02:05:33 +00:00
|
|
|
#include "Windows/GEDebugger/SimpleGLWindow.h"
|
2013-09-22 17:27:09 +00:00
|
|
|
|
2013-09-28 12:34:08 +00:00
|
|
|
enum {
|
|
|
|
WM_GEDBG_BREAK_CMD = WM_USER + 200,
|
|
|
|
WM_GEDBG_BREAK_DRAW,
|
|
|
|
WM_GEDBG_STEPDISPLAYLIST,
|
2013-10-01 22:41:37 +00:00
|
|
|
WM_GEDBG_TOGGLEPCBREAKPOINT,
|
|
|
|
WM_GEDBG_RUNTOWPARAM
|
2013-09-28 12:34:08 +00:00
|
|
|
};
|
|
|
|
|
2013-09-27 16:03:08 +00:00
|
|
|
class CtrlDisplayListView;
|
2013-09-28 23:02:05 +00:00
|
|
|
class TabDisplayLists;
|
2013-09-30 07:57:46 +00:00
|
|
|
class TabStateFlags;
|
2013-09-30 08:13:06 +00:00
|
|
|
class TabStateLighting;
|
2013-09-30 15:18:28 +00:00
|
|
|
class TabStateTexture;
|
2013-09-30 08:13:06 +00:00
|
|
|
class TabStateSettings;
|
2013-09-27 16:03:08 +00:00
|
|
|
|
2013-09-22 17:27:09 +00:00
|
|
|
class CGEDebugger : public Dialog {
|
|
|
|
public:
|
|
|
|
CGEDebugger(HINSTANCE _hInstance, HWND _hParent);
|
2013-09-23 02:05:33 +00:00
|
|
|
~CGEDebugger();
|
2013-09-22 17:27:09 +00:00
|
|
|
|
2013-09-28 05:41:44 +00:00
|
|
|
static void Init();
|
2013-10-01 10:05:19 +00:00
|
|
|
|
|
|
|
static bool IsAddressBreakPoint(u32 pc);
|
2013-10-01 14:53:00 +00:00
|
|
|
static bool IsOpBreakPoint(u32 op);
|
|
|
|
static bool IsTextureBreakPoint(u32 op);
|
|
|
|
// Separate so the UI can just show op break points separately.
|
|
|
|
static bool IsOpOrTextureBreakPoint(u32 op);
|
|
|
|
|
2013-09-22 17:27:09 +00:00
|
|
|
protected:
|
|
|
|
BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam);
|
2013-09-23 02:05:33 +00:00
|
|
|
|
2013-09-24 06:45:17 +00:00
|
|
|
private:
|
2013-09-28 05:41:44 +00:00
|
|
|
void SetupPreviews();
|
|
|
|
void UpdatePreviews();
|
2013-09-28 14:04:56 +00:00
|
|
|
void UpdateSize(WORD width, WORD height);
|
|
|
|
void SavePosition();
|
|
|
|
|
2013-09-30 07:57:46 +00:00
|
|
|
CtrlDisplayListView *displayList;
|
|
|
|
TabDisplayLists *lists;
|
|
|
|
TabStateFlags *flags;
|
2013-09-30 08:13:06 +00:00
|
|
|
TabStateLighting *lighting;
|
2013-09-30 15:18:28 +00:00
|
|
|
TabStateTexture *textureState;
|
2013-09-30 08:13:06 +00:00
|
|
|
TabStateSettings *settings;
|
2013-09-23 02:05:33 +00:00
|
|
|
SimpleGLWindow *frameWindow;
|
2013-09-28 05:41:44 +00:00
|
|
|
SimpleGLWindow *texWindow;
|
2013-09-30 07:57:46 +00:00
|
|
|
TabControl *tabs;
|
2013-10-06 23:48:23 +00:00
|
|
|
TabControl *fbTabs;
|
2013-09-28 14:04:56 +00:00
|
|
|
|
|
|
|
int minWidth,minHeight;
|
2013-09-22 17:27:09 +00:00
|
|
|
};
|