mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
Qt: Add debug settings to menu
This commit is contained in:
parent
733ab1bca0
commit
edb6d7c97e
|
@ -6,6 +6,7 @@
|
|||
#include "qthostinterface.h"
|
||||
#include "qtsettingsinterface.h"
|
||||
#include "settingsdialog.h"
|
||||
#include "settingwidgetbinder.h"
|
||||
#include <QtCore/QUrl>
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtWidgets/QFileDialog>
|
||||
|
@ -359,6 +360,19 @@ void MainWindow::connectSignals()
|
|||
m_ui.statusBar->showMessage(QString::fromStdString(entry->path));
|
||||
populateLoadSaveStateMenus(QString::fromStdString(entry->code));
|
||||
});
|
||||
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowVRAM, "Debug/ShowVRAM");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugDumpCPUtoVRAMCopies,
|
||||
"Debug/DumpCPUToVRAMCopies");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugDumpVRAMtoCPUCopies,
|
||||
"Debug/DumpVRAMToCPUCopies");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowGPUState, "Debug/ShowGPUState");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowCDROMState,
|
||||
"Debug/ShowCDROMState");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowSPUState, "Debug/ShowSPUState");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowTimersState,
|
||||
"Debug/ShowTimersState");
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.actionDebugShowMDECState, "Debug/ShowMDECState");
|
||||
}
|
||||
|
||||
SettingsDialog* MainWindow::getSettingsDialog()
|
||||
|
|
|
@ -123,6 +123,15 @@
|
|||
</widget>
|
||||
<addaction name="menuCPUExecutionMode"/>
|
||||
<addaction name="menuRenderer"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionDebugShowVRAM"/>
|
||||
<addaction name="actionDebugDumpCPUtoVRAMCopies"/>
|
||||
<addaction name="actionDebugDumpVRAMtoCPUCopies"/>
|
||||
<addaction name="actionDebugShowGPUState"/>
|
||||
<addaction name="actionDebugShowCDROMState"/>
|
||||
<addaction name="actionDebugShowSPUState"/>
|
||||
<addaction name="actionDebugShowTimersState"/>
|
||||
<addaction name="actionDebugShowMDECState"/>
|
||||
</widget>
|
||||
<addaction name="menuSystem"/>
|
||||
<addaction name="menuSettings"/>
|
||||
|
@ -388,6 +397,70 @@
|
|||
<string>Global State</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowVRAM">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show VRAM</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugDumpCPUtoVRAMCopies">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dump CPU to VRAM Copies</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugDumpVRAMtoCPUCopies">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dump VRAM to CPU Copies</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowGPUState">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show GPU State</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowCDROMState">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show CDROM State</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowSPUState">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show SPU State</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowTimersState">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Timers State</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDebugShowMDECState">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show MDEC State</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources/icons.qrc"/>
|
||||
|
|
Loading…
Reference in a new issue