Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/UI/DeveloperToolsScreen.h
4776 views
1
#pragma once
2
3
#include "ppsspp_config.h"
4
5
#include "UI/TabbedDialogScreen.h"
6
7
class DeveloperToolsScreen : public UITabbedBaseDialogScreen {
8
public:
9
DeveloperToolsScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath, TabDialogFlags::AddAutoTitles) {}
10
11
void CreateTabs() override;
12
void update() override;
13
void onFinish(DialogResult result) override;
14
15
const char *tag() const override { return "DeveloperTools"; }
16
17
private:
18
void CreateTextureReplacementTab(UI::LinearLayout *parent);
19
void CreateGeneralTab(UI::LinearLayout *parent);
20
void CreateDumpFileTab(UI::LinearLayout *parent);
21
void CreateHLETab(UI::LinearLayout *parent);
22
void CreateMIPSTracerTab(UI::LinearLayout *list);
23
void CreateTestsTab(UI::LinearLayout *list);
24
void CreateAudioTab(UI::LinearLayout *list);
25
void CreateGraphicsTab(UI::LinearLayout *list);
26
void CreateNetworkTab(UI::LinearLayout *list);
27
void CreateUITab(UI::LinearLayout *list);
28
void CreateCrashHistoryTab(UI::LinearLayout *list);
29
30
void OnLoggingChanged(UI::EventParams &e);
31
void OnOpenTexturesIniFile(UI::EventParams &e);
32
void OnJitAffectingSetting(UI::EventParams &e);
33
void OnJitDebugTools(UI::EventParams &e);
34
void OnRemoteDebugger(UI::EventParams &e);
35
void OnMIPSTracerEnabled(UI::EventParams &e);
36
void OnMIPSTracerPathChanged(UI::EventParams &e);
37
void OnMIPSTracerFlushTrace(UI::EventParams &e);
38
void OnMIPSTracerClearJitCache(UI::EventParams &e);
39
void OnMIPSTracerClearTracer(UI::EventParams &e);
40
void OnGPUDriverTest(UI::EventParams &e);
41
void OnMemstickTest(UI::EventParams &e);
42
void OnTouchscreenTest(UI::EventParams &e);
43
void OnCopyStatesToRoot(UI::EventParams &e);
44
45
void MemoryMapTest();
46
47
bool allowDebugger_ = false;
48
bool canAllowDebugger_ = true;
49
enum class HasIni {
50
NO,
51
YES,
52
MAYBE,
53
};
54
HasIni hasTexturesIni_ = HasIni::MAYBE;
55
56
bool MIPSTracerEnabled_ = false;
57
std::string MIPSTracerPath_ = "";
58
UI::InfoItem* MIPSTracerPath = nullptr;
59
60
int testSliderValue_ = 0;
61
bool pretendIngame_ = false;
62
};
63
64