mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Extract FormatStateRow() from the Win32 GE debugger to GPU/Debugger/Registers
This commit is contained in:
1 parent
0c524b712e
commit
21997784bf
23 files changed
+927
-807
No files matched your search
@@ -85,3 +85,27 @@ void DrawGeDebuggerWindow(ImConfig &cfg) {
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
// TODO: Separate window or merge into Ge debugger?
|
||||
void DrawGeRegistersWindow(ImConfig &cfg) {
|
||||
ImGui::SetNextWindowSize(ImVec2(300, 500), ImGuiCond_FirstUseEver);
|
||||
if (!ImGui::Begin("Debug Stats", &cfg.geRegistersOpen)) {
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
if (ImGui::BeginTabBar("GeRegs", ImGuiTabBarFlags_None)) {
|
||||
if (ImGui::BeginTabItem("Control")) {
|
||||
if (ImGui::BeginTable("fpr", 3, ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersH)) {
|
||||
ImGui::TableSetupColumn("bkpt", ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("name", ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("value", ImGuiTableColumnFlags_WidthStretch);
|
||||
|
||||
ImGui::EndTable();
|
||||
}
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
ImGui::End();
|
||||
}
|
||||
Reference in new issue
Block a user