mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-07-09 17:25:37 -06:00
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:
parent
d3dc14ab91
commit
6a20ebacde
@ -123,12 +123,8 @@ void L::DrawMenuBar() {
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
if (BeginMenu("Debug")) {
|
||||
if (MenuItem("Memory map")) {
|
||||
memory_map.open = true;
|
||||
}
|
||||
if (MenuItem("Module list")) {
|
||||
module_list.open = true;
|
||||
}
|
||||
MenuItem("Memory map", nullptr, &memory_map.open);
|
||||
MenuItem("Module list", nullptr, &module_list.open);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
@ -303,6 +299,18 @@ static void LoadSettings(const char* line) {
|
||||
frame_graph.is_open = i != 0;
|
||||
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) {
|
||||
dump_frame_count = i;
|
||||
return;
|
||||
@ -344,6 +352,9 @@ void L::SetupSettings() {
|
||||
buf->appendf("fps_scale=%f\n", fps_scale);
|
||||
buf->appendf("show_advanced_debug=%d\n", DebugState.IsShowingDebugMenuBar());
|
||||
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->append("\n");
|
||||
buf->appendf("[%s][CmdList]\n", handler->TypeName);
|
||||
|
||||
@ -199,7 +199,7 @@ include(GoogleTest)
|
||||
foreach(t ${TEST_TARGETS})
|
||||
gtest_discover_tests(${t}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
PROPERTIES TIMEOUT 60
|
||||
DISCOVERY_TIMEOUT 60
|
||||
)
|
||||
endforeach()
|
||||
|
||||
@ -290,5 +290,5 @@ endif()
|
||||
|
||||
gtest_discover_tests(shadps4_http_test
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
PROPERTIES TIMEOUT 60
|
||||
DISCOVERY_TIMEOUT 60
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user