mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 22:06:59 +01:00
launcher: reorganize panels
This commit is contained in:
@@ -16,6 +16,13 @@
|
|||||||
<property name="locale">
|
<property name="locale">
|
||||||
<locale language="English" country="UnitedStates"/>
|
<locale language="English" country="UnitedStates"/>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="dialogLayout">
|
||||||
|
<property name="spacing"><number>8</number></property>
|
||||||
|
<item>
|
||||||
|
<widget class="QTabWidget" name="settings_tabs">
|
||||||
|
<property name="currentIndex"><number>0</number></property>
|
||||||
|
<widget class="QWidget" name="settings_tab">
|
||||||
|
<attribute name="title"><string>General</string></attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>8</number>
|
<number>8</number>
|
||||||
@@ -156,36 +163,18 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QCheckBox" name="checkBox_fullscreen">
|
|
||||||
<property name="toolTip"><string>Run in borderless desktop fullscreen</string></property>
|
|
||||||
<property name="text"><string>Fullscreen</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="QCheckBox" name="checkBox_readback">
|
<widget class="QCheckBox" name="checkBox_readback">
|
||||||
<property name="toolTip"><string>Read back writable linear images</string></property>
|
<property name="toolTip"><string>Read back writable linear images</string></property>
|
||||||
<property name="text"><string>Enable readback</string></property>
|
<property name="text"><string>Enable readback</string></property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="QCheckBox" name="checkBox_tessellation">
|
<widget class="QCheckBox" name="checkBox_tessellation">
|
||||||
<property name="toolTip"><string>Draw tessellated geometry. Disabled by default; unsupported tessellation may cause crashes.</string></property>
|
<property name="toolTip"><string>Draw tessellated geometry. Disabled by default; unsupported tessellation may cause crashes.</string></property>
|
||||||
<property name="text"><string>Enable tessellation support (experimental)</string></property>
|
<property name="text"><string>Enable tessellation support (experimental)</string></property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="QCheckBox" name="checkBox_hide_cursor">
|
|
||||||
<property name="toolTip"><string>Hide the host cursor after 2 seconds without mouse activity</string></property>
|
|
||||||
<property name="text"><string>Auto-hide cursor</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="1">
|
|
||||||
<widget class="QCheckBox" name="checkBox_skip_notice_screen">
|
|
||||||
<property name="toolTip"><string>Skip startup logos and notices in supported games.</string></property>
|
|
||||||
<property name="text"><string>Skip boot logos</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="1">
|
|
||||||
<widget class="QCheckBox" name="checkBox_sync_raw_image_buffers">
|
<widget class="QCheckBox" name="checkBox_sync_raw_image_buffers">
|
||||||
<property name="toolTip"><string>Can fix missing textures and incorrect transparency in some games. May reduce performance.</string></property>
|
<property name="toolTip"><string>Can fix missing textures and incorrect transparency in some games. May reduce performance.</string></property>
|
||||||
<property name="text"><string>Accurate texture synchronization</string></property>
|
<property name="text"><string>Accurate texture synchronization</string></property>
|
||||||
@@ -209,97 +198,26 @@ To use your own sound, replace the emulator's assets/sounds/trophy-unlock.wav wi
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="2">
|
|
||||||
<widget class="QGroupBox" name="debug_group">
|
|
||||||
<property name="title">
|
|
||||||
<string>Debugging && logs</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="debugLayout" columnstretch="0,1,0,1">
|
|
||||||
<property name="horizontalSpacing"><number>8</number></property>
|
|
||||||
<property name="verticalSpacing"><number>6</number></property>
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="checkBox_vulkan_validation">
|
|
||||||
<property name="toolTip"><string>Enable Vulkan validation layers</string></property>
|
|
||||||
<property name="text"><string>Vulkan validation</string></property>
|
|
||||||
<property name="checked"><bool>true</bool></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="checkBox_shader_validation">
|
|
||||||
<property name="toolTip"><string>Validate SPIR-V binary</string></property>
|
|
||||||
<property name="text"><string>Shader validation</string></property>
|
|
||||||
<property name="checked"><bool>true</bool></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="checkBox_renderdoc_capture">
|
|
||||||
<property name="toolTip"><string>Enable RenderDoc capture</string></property>
|
|
||||||
<property name="text"><string>RenderDoc capture</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="2" colspan="2">
|
|
||||||
<widget class="QCheckBox" name="checkBox_cmd_dump">
|
|
||||||
<property name="toolTip"><string>Dump command buffers</string></property>
|
|
||||||
<property name="text"><string>Command buffer dump</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label_shader_log_direction">
|
|
||||||
<property name="text"><string>Shader logging:</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QComboBox" name="comboBox_shader_log_direction">
|
|
||||||
<property name="toolTip"><string>Dump shaders to file or console window. If enabled may decrease emulator performance</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="2">
|
|
||||||
<widget class="QLabel" name="label_shader_log_folder">
|
|
||||||
<property name="text"><string>Shader log folder:</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="3">
|
|
||||||
<widget class="MandatoryLineEdit" name="lineEdit_shader_log_folder">
|
|
||||||
<property name="toolTip"><string>Specify directory to dump shaders</string></property>
|
|
||||||
<property name="clearButtonEnabled"><bool>true</bool></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_printf_direction">
|
|
||||||
<property name="text"><string>Printf output:</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QComboBox" name="comboBox_printf_direction">
|
<widget class="QGroupBox" name="general_group">
|
||||||
<property name="toolTip"><string>Print logs to file or console window. If enabled may decrease emulator performance</string></property>
|
<property name="title"><string>General</string></property>
|
||||||
|
<layout class="QVBoxLayout" name="generalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="checkBox_fullscreen">
|
||||||
|
<property name="toolTip"><string>Run in borderless desktop fullscreen</string></property>
|
||||||
|
<property name="text"><string>Run in fullscreen</string></property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="2">
|
<item>
|
||||||
<widget class="QLabel" name="label_printf_file">
|
<widget class="QCheckBox" name="checkBox_hide_cursor">
|
||||||
<property name="text"><string>Printf output file:</string></property>
|
<property name="toolTip"><string>Hide the host cursor after 2 seconds without mouse activity</string></property>
|
||||||
|
<property name="text"><string>Auto-hide cursor</string></property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="3">
|
<item>
|
||||||
<widget class="MandatoryLineEdit" name="lineEdit_printf_file">
|
<widget class="QCheckBox" name="checkBox_skip_notice_screen">
|
||||||
<property name="toolTip"><string>Specify file to dump logs</string></property>
|
<property name="toolTip"><string>Skip startup logos and notices in supported games.</string></property>
|
||||||
<property name="clearButtonEnabled"><bool>true</bool></property>
|
<property name="text"><string>Skip boot logos</string></property>
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QCheckBox" name="checkBox_profiler">
|
|
||||||
<property name="toolTip"><string>Enable the Tracy profiler. Profiling may decrease emulator performance</string></property>
|
|
||||||
<property name="text"><string>Tracy profiler</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="2">
|
|
||||||
<widget class="QLabel" name="label_cmd_dump_folder">
|
|
||||||
<property name="text"><string>Command buffer folder:</string></property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="3">
|
|
||||||
<widget class="MandatoryLineEdit" name="lineEdit_cmd_dump_folder">
|
|
||||||
<property name="toolTip"><string>Specify directory to dump command buffers</string></property>
|
|
||||||
<property name="clearButtonEnabled"><bool>true</bool></property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -403,7 +321,118 @@ To use your own sound, replace the emulator's assets/sounds/trophy-unlock.wav wi
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="debug_tab">
|
||||||
|
<attribute name="title"><string>Debug</string></attribute>
|
||||||
|
<layout class="QVBoxLayout" name="debugTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="debug_group">
|
||||||
|
<property name="title">
|
||||||
|
<string>Debugging && logs</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="debugLayout" columnstretch="0,1,0,1">
|
||||||
|
<property name="horizontalSpacing"><number>8</number></property>
|
||||||
|
<property name="verticalSpacing"><number>6</number></property>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="checkBox_vulkan_validation">
|
||||||
|
<property name="toolTip"><string>Enable Vulkan validation layers</string></property>
|
||||||
|
<property name="text"><string>Vulkan validation</string></property>
|
||||||
|
<property name="checked"><bool>true</bool></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="checkBox_shader_validation">
|
||||||
|
<property name="toolTip"><string>Validate SPIR-V binary</string></property>
|
||||||
|
<property name="text"><string>Shader validation</string></property>
|
||||||
|
<property name="checked"><bool>true</bool></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="checkBox_renderdoc_capture">
|
||||||
|
<property name="toolTip"><string>Enable RenderDoc capture</string></property>
|
||||||
|
<property name="text"><string>RenderDoc capture</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="checkBox_cmd_dump">
|
||||||
|
<property name="toolTip"><string>Dump command buffers</string></property>
|
||||||
|
<property name="text"><string>Command buffer dump</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_shader_log_direction">
|
||||||
|
<property name="text"><string>Shader logging:</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QComboBox" name="comboBox_shader_log_direction">
|
||||||
|
<property name="toolTip"><string>Dump shaders to file or console window. If enabled may decrease emulator performance</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="2">
|
||||||
|
<widget class="QLabel" name="label_shader_log_folder">
|
||||||
|
<property name="text"><string>Shader log folder:</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="3">
|
||||||
|
<widget class="MandatoryLineEdit" name="lineEdit_shader_log_folder">
|
||||||
|
<property name="toolTip"><string>Specify directory to dump shaders</string></property>
|
||||||
|
<property name="clearButtonEnabled"><bool>true</bool></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_printf_direction">
|
||||||
|
<property name="text"><string>Printf output:</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QComboBox" name="comboBox_printf_direction">
|
||||||
|
<property name="toolTip"><string>Print logs to file or console window. If enabled may decrease emulator performance</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<widget class="QLabel" name="label_printf_file">
|
||||||
|
<property name="text"><string>Printf output file:</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="MandatoryLineEdit" name="lineEdit_printf_file">
|
||||||
|
<property name="toolTip"><string>Specify file to dump logs</string></property>
|
||||||
|
<property name="clearButtonEnabled"><bool>true</bool></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_profiler">
|
||||||
|
<property name="toolTip"><string>Enable the Tracy profiler. Profiling may decrease emulator performance</string></property>
|
||||||
|
<property name="text"><string>Tracy profiler</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="2">
|
||||||
|
<widget class="QLabel" name="label_cmd_dump_folder">
|
||||||
|
<property name="text"><string>Command buffer folder:</string></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="3">
|
||||||
|
<widget class="MandatoryLineEdit" name="lineEdit_cmd_dump_folder">
|
||||||
|
<property name="toolTip"><string>Specify directory to dump command buffers</string></property>
|
||||||
|
<property name="clearButtonEnabled"><bool>true</bool></property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="debugSpacer">
|
||||||
|
<property name="orientation"><enum>Qt::Vertical</enum></property>
|
||||||
|
<property name="sizeHint" stdset="0"><size><width>20</width><height>40</height></size></property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<layout class="QHBoxLayout" name="buttonLayout">
|
<layout class="QHBoxLayout" name="buttonLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="clear_button">
|
<widget class="QPushButton" name="clear_button">
|
||||||
|
|||||||
@@ -463,6 +463,14 @@ static void UpdateInfo(Configuration& info, Ui::ConfigurationEditDialog& ui, boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ConfigurationEditDialog::save() {
|
void ConfigurationEditDialog::save() {
|
||||||
|
for (auto* field: {m_ui->lineEdit_shader_log_folder, m_ui->lineEdit_printf_file,
|
||||||
|
m_ui->lineEdit_cmd_dump_folder}) {
|
||||||
|
if (field->isEnabled() && field->text().isEmpty()) {
|
||||||
|
m_ui->settings_tabs->setCurrentWidget(m_ui->debug_tab);
|
||||||
|
field->setFocus();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (MandatoryLineEdit::FindEmpty(this)) {
|
if (MandatoryLineEdit::FindEmpty(this)) {
|
||||||
QMessageBox::critical(this, tr("Save failed"), tr("Please fill all mandatory fields"));
|
QMessageBox::critical(this, tr("Save failed"), tr("Please fill all mandatory fields"));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user