Browse Source
settings, arm_dynarmic, yuzu qt: Move CPU debugging option
settings, arm_dynarmic, yuzu qt: Move CPU debugging option
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI.pull/15/merge
18 changed files with 244 additions and 132 deletions
-
2src/common/settings.cpp
-
2src/common/settings.h
-
2src/core/arm/dynarmic/arm_dynarmic_32.cpp
-
2src/core/arm/dynarmic/arm_dynarmic_64.cpp
-
3src/yuzu/CMakeLists.txt
-
2src/yuzu/configuration/config.cpp
-
50src/yuzu/configuration/configure.ui
-
18src/yuzu/configuration/configure_cpu.cpp
-
1src/yuzu/configuration/configure_cpu.h
-
5src/yuzu/configuration/configure_cpu.ui
-
1src/yuzu/configuration/configure_cpu_debug.h
-
94src/yuzu/configuration/configure_cpu_debug.ui
-
3src/yuzu/configuration/configure_debug.cpp
-
63src/yuzu/configuration/configure_debug.ui
-
38src/yuzu/configuration/configure_debug_tab.cpp
-
32src/yuzu/configuration/configure_debug_tab.h
-
52src/yuzu/configuration/configure_debug_tab.ui
-
6src/yuzu/configuration/configure_dialog.cpp
@ -0,0 +1,38 @@ |
|||||
|
// Copyright 2021 yuzu Emulator Project
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#include "ui_configure_debug_tab.h"
|
||||
|
#include "yuzu/configuration/configure_debug_tab.h"
|
||||
|
|
||||
|
ConfigureDebugTab::ConfigureDebugTab(QWidget* parent) |
||||
|
: QWidget(parent), ui(new Ui::ConfigureDebugTab) { |
||||
|
ui->setupUi(this); |
||||
|
|
||||
|
SetConfiguration(); |
||||
|
} |
||||
|
|
||||
|
ConfigureDebugTab::~ConfigureDebugTab() = default; |
||||
|
|
||||
|
void ConfigureDebugTab::ApplyConfiguration() { |
||||
|
ui->debugTab->ApplyConfiguration(); |
||||
|
ui->cpuDebugTab->ApplyConfiguration(); |
||||
|
} |
||||
|
|
||||
|
void ConfigureDebugTab::SetCurrentIndex(int index) { |
||||
|
ui->tabWidget->setCurrentIndex(index); |
||||
|
} |
||||
|
|
||||
|
void ConfigureDebugTab::changeEvent(QEvent* event) { |
||||
|
if (event->type() == QEvent::LanguageChange) { |
||||
|
RetranslateUI(); |
||||
|
} |
||||
|
|
||||
|
QWidget::changeEvent(event); |
||||
|
} |
||||
|
|
||||
|
void ConfigureDebugTab::RetranslateUI() { |
||||
|
ui->retranslateUi(this); |
||||
|
} |
||||
|
|
||||
|
void ConfigureDebugTab::SetConfiguration() {} |
||||
@ -0,0 +1,32 @@ |
|||||
|
// Copyright 2021 yuzu Emulator Project |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include <memory> |
||||
|
#include <QWidget> |
||||
|
|
||||
|
namespace Ui { |
||||
|
class ConfigureDebugTab; |
||||
|
} |
||||
|
|
||||
|
class ConfigureDebugTab : public QWidget { |
||||
|
Q_OBJECT |
||||
|
|
||||
|
public: |
||||
|
explicit ConfigureDebugTab(QWidget* parent = nullptr); |
||||
|
~ConfigureDebugTab() override; |
||||
|
|
||||
|
void ApplyConfiguration(); |
||||
|
|
||||
|
void SetCurrentIndex(int index); |
||||
|
|
||||
|
private: |
||||
|
void changeEvent(QEvent* event) override; |
||||
|
void RetranslateUI(); |
||||
|
|
||||
|
void SetConfiguration(); |
||||
|
|
||||
|
std::unique_ptr<Ui::ConfigureDebugTab> ui; |
||||
|
}; |
||||
@ -0,0 +1,52 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<ui version="4.0"> |
||||
|
<class>ConfigureDebugTab</class> |
||||
|
<widget class="QWidget" name="ConfigureDebugTab"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>0</x> |
||||
|
<y>0</y> |
||||
|
<width>320</width> |
||||
|
<height>240</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="windowTitle"> |
||||
|
<string>Form</string> |
||||
|
</property> |
||||
|
<layout class="QVBoxLayout" name="verticalLayout"> |
||||
|
<item> |
||||
|
<widget class="QTabWidget" name="tabWidget"> |
||||
|
<property name="currentIndex"> |
||||
|
<number>1</number> |
||||
|
</property> |
||||
|
<widget class="ConfigureDebug" name="debugTab"> |
||||
|
<attribute name="title"> |
||||
|
<string>General</string> |
||||
|
</attribute> |
||||
|
</widget> |
||||
|
<widget class="ConfigureCpuDebug" name="cpuDebugTab"> |
||||
|
<attribute name="title"> |
||||
|
<string>CPU</string> |
||||
|
</attribute> |
||||
|
</widget> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
<customwidgets> |
||||
|
<customwidget> |
||||
|
<class>ConfigureDebug</class> |
||||
|
<extends>QWidget</extends> |
||||
|
<header>configuration/configure_debug.h</header> |
||||
|
<container>1</container> |
||||
|
</customwidget> |
||||
|
<customwidget> |
||||
|
<class>ConfigureCpuDebug</class> |
||||
|
<extends>QWidget</extends> |
||||
|
<header>configuration/configure_cpu_debug.h</header> |
||||
|
<container>1</container> |
||||
|
</customwidget> |
||||
|
</customwidgets> |
||||
|
<resources/> |
||||
|
<connections/> |
||||
|
</ui> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue