Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/UI/DeveloperToolsScreen.h
3185 views
1
#pragma once
2
3
#include "ppsspp_config.h"
4
5
#include "UI/TabbedDialogScreen.h"
6
7
class DeveloperToolsScreen : public TabbedUIDialogScreenWithGameBackground {
8
public:
9
DeveloperToolsScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
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
28
UI::EventReturn OnLoggingChanged(UI::EventParams &e);
29
UI::EventReturn OnOpenTexturesIniFile(UI::EventParams &e);
30
UI::EventReturn OnLogConfig(UI::EventParams &e);
31
UI::EventReturn OnJitAffectingSetting(UI::EventParams &e);
32
UI::EventReturn OnJitDebugTools(UI::EventParams &e);
33
UI::EventReturn OnRemoteDebugger(UI::EventParams &e);
34
UI::EventReturn OnMIPSTracerEnabled(UI::EventParams &e);
35
UI::EventReturn OnMIPSTracerPathChanged(UI::EventParams &e);
36
UI::EventReturn OnMIPSTracerFlushTrace(UI::EventParams &e);
37
UI::EventReturn OnMIPSTracerClearJitCache(UI::EventParams &e);
38
UI::EventReturn OnMIPSTracerClearTracer(UI::EventParams &e);
39
UI::EventReturn OnGPUDriverTest(UI::EventParams &e);
40
UI::EventReturn OnMemstickTest(UI::EventParams &e);
41
UI::EventReturn OnTouchscreenTest(UI::EventParams &e);
42
UI::EventReturn OnCopyStatesToRoot(UI::EventParams &e);
43
44
void MemoryMapTest();
45
46
bool allowDebugger_ = false;
47
bool canAllowDebugger_ = true;
48
enum class HasIni {
49
NO,
50
YES,
51
MAYBE,
52
};
53
HasIni hasTexturesIni_ = HasIni::MAYBE;
54
55
bool MIPSTracerEnabled_ = false;
56
std::string MIPSTracerPath_ = "";
57
UI::InfoItem* MIPSTracerPath = nullptr;
58
};
59
60