Save shader list, memory map and module list widgets (#4578)

* Save shader list, memory map and module list widgets

* Test discovery fix timeout...
This commit is contained in:
Niram7777 2026-06-14 19:17:18 +02:00 committed by GitHub
parent d3dc14ab91
commit 6a20ebacde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 8 deletions

View File

@ -123,12 +123,8 @@ void L::DrawMenuBar() {
ImGui::EndMenu(); ImGui::EndMenu();
} }
if (BeginMenu("Debug")) { if (BeginMenu("Debug")) {
if (MenuItem("Memory map")) { MenuItem("Memory map", nullptr, &memory_map.open);
memory_map.open = true; MenuItem("Module list", nullptr, &module_list.open);
}
if (MenuItem("Module list")) {
module_list.open = true;
}
ImGui::EndMenu(); ImGui::EndMenu();
} }
@ -303,6 +299,18 @@ static void LoadSettings(const char* line) {
frame_graph.is_open = i != 0; frame_graph.is_open = i != 0;
return; return;
} }
if (sscanf(line, "show_shader_list=%d", &i) == 1) {
shader_list.open = i != 0;
return;
}
if (sscanf(line, "show_memory_map=%d", &i) == 1) {
memory_map.open = i != 0;
return;
}
if (sscanf(line, "show_module_list=%d", &i) == 1) {
module_list.open = i != 0;
return;
}
if (sscanf(line, "dump_frame_count=%d", &i) == 1) { if (sscanf(line, "dump_frame_count=%d", &i) == 1) {
dump_frame_count = i; dump_frame_count = i;
return; return;
@ -344,6 +352,9 @@ void L::SetupSettings() {
buf->appendf("fps_scale=%f\n", fps_scale); buf->appendf("fps_scale=%f\n", fps_scale);
buf->appendf("show_advanced_debug=%d\n", DebugState.IsShowingDebugMenuBar()); buf->appendf("show_advanced_debug=%d\n", DebugState.IsShowingDebugMenuBar());
buf->appendf("show_frame_graph=%d\n", frame_graph.is_open); buf->appendf("show_frame_graph=%d\n", frame_graph.is_open);
buf->appendf("show_shader_list=%d\n", shader_list.open);
buf->appendf("show_memory_map=%d\n", memory_map.open);
buf->appendf("show_module_list=%d\n", module_list.open);
buf->appendf("dump_frame_count=%d\n", dump_frame_count); buf->appendf("dump_frame_count=%d\n", dump_frame_count);
buf->append("\n"); buf->append("\n");
buf->appendf("[%s][CmdList]\n", handler->TypeName); buf->appendf("[%s][CmdList]\n", handler->TypeName);

View File

@ -199,7 +199,7 @@ include(GoogleTest)
foreach(t ${TEST_TARGETS}) foreach(t ${TEST_TARGETS})
gtest_discover_tests(${t} gtest_discover_tests(${t}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
PROPERTIES TIMEOUT 60 DISCOVERY_TIMEOUT 60
) )
endforeach() endforeach()
@ -290,5 +290,5 @@ endif()
gtest_discover_tests(shadps4_http_test gtest_discover_tests(shadps4_http_test
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
PROPERTIES TIMEOUT 60 DISCOVERY_TIMEOUT 60
) )