Qt: add spu and ppu debug checkboxes to debug tab

This commit is contained in:
Unknown 2017-10-06 01:39:57 +02:00 committed by Ivan
parent a84cc1d3bb
commit 93d2ac887d
4 changed files with 53 additions and 5 deletions

View File

@ -34,6 +34,8 @@
}
},
"debug": {
"ppuDebug": "Never use this.",
"spuDebug": "Never use this.",
"readColor": "Never use this.",
"dumpDepth": "Never use this.",
"readDepth": "Never use this.",

View File

@ -34,6 +34,8 @@ public:
LowerSPUThreadPrio,
SPULoopDetection,
PreferredSPUThreads,
PPUDebug,
SPUDebug,
// Graphics
Renderer,
@ -174,6 +176,8 @@ private:
{ LowerSPUThreadPrio, { "Core", "Lower SPU thread priority"}},
{ SPULoopDetection, { "Core", "SPU loop detection"}},
{ PreferredSPUThreads, { "Core", "Preferred SPU Threads"}},
{ PPUDebug, { "Core", "PPU Debug"}},
{ SPUDebug, { "Core", "SPU Debug"}},
// Graphics Tab
{ Renderer, { "Video", "Renderer"}},

View File

@ -781,7 +781,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
// __/ |
// |___/
// Checkboxes: debug options
// Checkboxes: gpu debug options
xemu_settings->EnhanceCheckBox(ui->glLegacyBuffers, emu_settings::LegacyBuffers);
ui->glLegacyBuffers->setToolTip(json_debug["glLegacyBuffers"].toString());
@ -812,6 +812,15 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
xemu_settings->EnhanceCheckBox(ui->disableHwOcclusionQueries, emu_settings::DisableOcclusionQueries);
ui->disableHwOcclusionQueries->setToolTip(json_debug["disableOcclusionQueries"].toString());
// Checkboxes: core debug options
xemu_settings->EnhanceCheckBox(ui->ppuDebug, emu_settings::PPUDebug);
ui->ppuDebug->setToolTip(json_debug["ppuDebug"].toString());
//TODO: Subscribe
xemu_settings->EnhanceCheckBox(ui->spuDebug, emu_settings::SPUDebug);
ui->spuDebug->setToolTip(json_debug["spuDebug"].toString());
//TODO: Subscribe
//
// Layout fix for High Dpi
//

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<height>604</height>
<width>729</width>
<height>821</height>
</rect>
</property>
<property name="sizePolicy">
@ -1277,7 +1277,7 @@
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_53">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<layout class="QHBoxLayout" name="horizontalLayout_21" stretch="1,1">
<item>
<widget class="QGroupBox" name="groupBox_48">
<property name="enabled">
@ -1367,7 +1367,40 @@
</widget>
</item>
<item>
<widget class="QWidget" name="widget_7" native="true"/>
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>Core</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_29">
<item>
<widget class="QCheckBox" name="ppuDebug">
<property name="text">
<string>PPU Debug</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="spuDebug">
<property name="text">
<string>SPU Debug</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>