Refactoring settings/support changing GPU renderer at runtime
This commit is contained in:
@ -931,16 +931,13 @@ void SPU::GenerateSample()
|
||||
#endif
|
||||
}
|
||||
|
||||
void SPU::DrawDebugWindow()
|
||||
void SPU::DrawDebugStateWindow()
|
||||
{
|
||||
static const ImVec4 active_color{1.0f, 1.0f, 1.0f, 1.0f};
|
||||
static const ImVec4 inactive_color{0.4f, 0.4f, 0.4f, 1.0f};
|
||||
|
||||
if (!m_show_spu_state)
|
||||
return;
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(800, 600), ImGuiCond_FirstUseEver);
|
||||
if (!ImGui::Begin("SPU State", &m_show_spu_state))
|
||||
if (!ImGui::Begin("SPU State", &m_system->GetSettings().debugging.show_spu_state))
|
||||
{
|
||||
ImGui::End();
|
||||
return;
|
||||
@ -1077,9 +1074,3 @@ void SPU::DrawDebugWindow()
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void SPU::DrawDebugMenu()
|
||||
{
|
||||
// TODO: Show RAM, etc.
|
||||
ImGui::MenuItem("SPU", nullptr, &m_show_spu_state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user