mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
Fix ImDebugger cleanup on exit
This commit is contained in:
1 parent
3d8233b7f8
commit
c1ae455ce8
7 files changed
+60
-14
No files matched your search
@@ -649,12 +649,28 @@ static void DrawInternals(ImConfig &cfg) {
|
||||
{DIRECTORY_CUSTOM_THEMES, "CUSTOM_THEMES"},
|
||||
};
|
||||
|
||||
if (ImGui::CollapsingHeader("Directories", ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
if (ImGui::CollapsingHeader("GetSysDirectory")) {
|
||||
for (auto &dir : dirs) {
|
||||
ImGui::Text("%s: %s", dir.name, GetSysDirectory(dir.dir).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeader("Memory")) {
|
||||
ImGui::Text("Base pointer: %p", Memory::base);
|
||||
ImGui::Text("Main memory size: %08x", Memory::g_MemorySize);
|
||||
if (ImGui::Button("Copy to clipboard")) {
|
||||
System_CopyStringToClipboard(StringFromFormat("0x%p", Memory::base));
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeader("ImGui state")) {
|
||||
const auto &io = ImGui::GetIO();
|
||||
ImGui::Text("WantCaptureMouse: %s", BoolStr(io.WantCaptureMouse));
|
||||
ImGui::Text("WantCaptureKeyboard: %s", BoolStr(io.WantCaptureKeyboard));
|
||||
ImGui::Text("WantCaptureMouseUnlessPopupClose: %s", BoolStr(io.WantCaptureMouseUnlessPopupClose));
|
||||
ImGui::Text("WantTextInput: %s", BoolStr(io.WantTextInput));
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
@@ -672,15 +688,6 @@ static void DrawAdhoc(ImConfig &cfg) {
|
||||
default: break;
|
||||
}
|
||||
|
||||
auto &io = ImGui::GetIO();
|
||||
|
||||
/*
|
||||
ImGui::Text("WantCaptureMouse: %s", BoolStr(io.WantCaptureMouse));
|
||||
ImGui::Text("WantCaptureKeyboard: %s", BoolStr(io.WantCaptureKeyboard));
|
||||
ImGui::Text("WantCaptureMouseUnlessPopupClose: %s", BoolStr(io.WantCaptureMouseUnlessPopupClose));
|
||||
ImGui::Text("WantTextInput: %s", BoolStr(io.WantTextInput));
|
||||
*/
|
||||
|
||||
ImGui::Text("sceNetAdhoc inited: %s", BoolStr(netAdhocInited));
|
||||
ImGui::Text("sceNetAdhocctl inited: %s", BoolStr(netAdhocctlInited));
|
||||
ImGui::Text("sceNetAdhocctl state: %s", AdhocCtlStateToString(NetAdhocctl_GetState()));
|
||||
@@ -1710,6 +1717,9 @@ void DrawHLEModules(ImConfig &config) {
|
||||
case 'I': amask[i] = 'd'; break;
|
||||
case 'f':
|
||||
case 'F': amask[i] = 'x'; break;
|
||||
default:
|
||||
// others go straight through (p)
|
||||
break;
|
||||
}
|
||||
}
|
||||
w.F("%s 0x%08x %d %s", func.name, func.ID, strlen(func.argmask), amask.c_str()).endl();
|
||||
@@ -2422,6 +2432,11 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, ImConfig &cfg, ImContro
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void ImDebugger::DeviceLost() {
|
||||
pixelViewer_.DeviceLost();
|
||||
geDebugger_.DeviceLost();
|
||||
}
|
||||
|
||||
Path ImDebugger::ConfigPath() {
|
||||
return GetSysDirectory(DIRECTORY_SYSTEM) / "imdebugger.ini";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user