diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 22 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.h | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.ui | 35 |
3 files changed, 6 insertions, 53 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index 9ea4c02da..b01ffdbac 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp | |||
| @@ -40,8 +40,6 @@ static bool IsValidLocale(u32 region_index, u32 language_index) { | |||
| 40 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) | 40 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) |
| 41 | : QWidget(parent), ui{std::make_unique<Ui::ConfigureSystem>()}, system{system_} { | 41 | : QWidget(parent), ui{std::make_unique<Ui::ConfigureSystem>()}, system{system_} { |
| 42 | ui->setupUi(this); | 42 | ui->setupUi(this); |
| 43 | connect(ui->button_regenerate_console_id, &QPushButton::clicked, this, | ||
| 44 | &ConfigureSystem::RefreshConsoleID); | ||
| 45 | 43 | ||
| 46 | connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](int state) { | 44 | connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](int state) { |
| 47 | ui->rng_seed_edit->setEnabled(state == Qt::Checked); | 45 | ui->rng_seed_edit->setEnabled(state == Qt::Checked); |
| @@ -76,9 +74,6 @@ ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) | |||
| 76 | locale_check); | 74 | locale_check); |
| 77 | connect(ui->combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); | 75 | connect(ui->combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); |
| 78 | 76 | ||
| 79 | ui->label_console_id->setVisible(Settings::IsConfiguringGlobal()); | ||
| 80 | ui->button_regenerate_console_id->setVisible(Settings::IsConfiguringGlobal()); | ||
| 81 | |||
| 82 | SetupPerGameUI(); | 77 | SetupPerGameUI(); |
| 83 | 78 | ||
| 84 | SetConfiguration(); | 79 | SetConfiguration(); |
| @@ -202,23 +197,6 @@ void ConfigureSystem::ApplyConfiguration() { | |||
| 202 | } | 197 | } |
| 203 | } | 198 | } |
| 204 | 199 | ||
| 205 | void ConfigureSystem::RefreshConsoleID() { | ||
| 206 | QMessageBox::StandardButton reply; | ||
| 207 | QString warning_text = tr("This will replace your current virtual Switch with a new one. " | ||
| 208 | "Your current virtual Switch will not be recoverable. " | ||
| 209 | "This might have unexpected effects in games. This might fail, " | ||
| 210 | "if you use an outdated config savegame. Continue?"); | ||
| 211 | reply = QMessageBox::critical(this, tr("Warning"), warning_text, | ||
| 212 | QMessageBox::No | QMessageBox::Yes); | ||
| 213 | if (reply == QMessageBox::No) { | ||
| 214 | return; | ||
| 215 | } | ||
| 216 | |||
| 217 | u64 console_id{}; | ||
| 218 | ui->label_console_id->setText( | ||
| 219 | tr("Console ID: 0x%1").arg(QString::number(console_id, 16).toUpper())); | ||
| 220 | } | ||
| 221 | |||
| 222 | void ConfigureSystem::SetupPerGameUI() { | 200 | void ConfigureSystem::SetupPerGameUI() { |
| 223 | if (Settings::IsConfiguringGlobal()) { | 201 | if (Settings::IsConfiguringGlobal()) { |
| 224 | ui->combo_language->setEnabled(Settings::values.language_index.UsingGlobal()); | 202 | ui->combo_language->setEnabled(Settings::values.language_index.UsingGlobal()); |
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h index a7f086258..ec28724a1 100644 --- a/src/yuzu/configuration/configure_system.h +++ b/src/yuzu/configuration/configure_system.h | |||
| @@ -35,8 +35,6 @@ private: | |||
| 35 | 35 | ||
| 36 | void ReadSystemSettings(); | 36 | void ReadSystemSettings(); |
| 37 | 37 | ||
| 38 | void RefreshConsoleID(); | ||
| 39 | |||
| 40 | void SetupPerGameUI(); | 38 | void SetupPerGameUI(); |
| 41 | 39 | ||
| 42 | std::unique_ptr<Ui::ConfigureSystem> ui; | 40 | std::unique_ptr<Ui::ConfigureSystem> ui; |
diff --git a/src/yuzu/configuration/configure_system.ui b/src/yuzu/configuration/configure_system.ui index 0459cd924..254a44147 100644 --- a/src/yuzu/configuration/configure_system.ui +++ b/src/yuzu/configuration/configure_system.ui | |||
| @@ -411,7 +411,7 @@ | |||
| 411 | </item> | 411 | </item> |
| 412 | </widget> | 412 | </widget> |
| 413 | </item> | 413 | </item> |
| 414 | <item row="5" column="0"> | 414 | <item row="4" column="0"> |
| 415 | <widget class="QCheckBox" name="custom_rtc_checkbox"> | 415 | <widget class="QCheckBox" name="custom_rtc_checkbox"> |
| 416 | <property name="text"> | 416 | <property name="text"> |
| 417 | <string>Custom RTC</string> | 417 | <string>Custom RTC</string> |
| @@ -425,14 +425,14 @@ | |||
| 425 | </property> | 425 | </property> |
| 426 | </widget> | 426 | </widget> |
| 427 | </item> | 427 | </item> |
| 428 | <item row="6" column="0"> | 428 | <item row="5" column="0"> |
| 429 | <widget class="QCheckBox" name="rng_seed_checkbox"> | 429 | <widget class="QCheckBox" name="rng_seed_checkbox"> |
| 430 | <property name="text"> | 430 | <property name="text"> |
| 431 | <string>RNG Seed</string> | 431 | <string>RNG Seed</string> |
| 432 | </property> | 432 | </property> |
| 433 | </widget> | 433 | </widget> |
| 434 | </item> | 434 | </item> |
| 435 | <item row="7" column="0"> | 435 | <item row="6" column="0"> |
| 436 | <widget class="QLabel" name="device_name_label"> | 436 | <widget class="QLabel" name="device_name_label"> |
| 437 | <property name="text"> | 437 | <property name="text"> |
| 438 | <string>Device Name</string> | 438 | <string>Device Name</string> |
| @@ -458,13 +458,6 @@ | |||
| 458 | </item> | 458 | </item> |
| 459 | </widget> | 459 | </widget> |
| 460 | </item> | 460 | </item> |
| 461 | <item row="4" column="0"> | ||
| 462 | <widget class="QLabel" name="label_console_id"> | ||
| 463 | <property name="text"> | ||
| 464 | <string>Console ID:</string> | ||
| 465 | </property> | ||
| 466 | </widget> | ||
| 467 | </item> | ||
| 468 | <item row="3" column="0"> | 461 | <item row="3" column="0"> |
| 469 | <widget class="QLabel" name="label_sound"> | 462 | <widget class="QLabel" name="label_sound"> |
| 470 | <property name="text"> | 463 | <property name="text"> |
| @@ -472,7 +465,7 @@ | |||
| 472 | </property> | 465 | </property> |
| 473 | </widget> | 466 | </widget> |
| 474 | </item> | 467 | </item> |
| 475 | <item row="5" column="1"> | 468 | <item row="4" column="1"> |
| 476 | <widget class="QDateTimeEdit" name="custom_rtc_edit"> | 469 | <widget class="QDateTimeEdit" name="custom_rtc_edit"> |
| 477 | <property name="minimumDate"> | 470 | <property name="minimumDate"> |
| 478 | <date> | 471 | <date> |
| @@ -483,14 +476,14 @@ | |||
| 483 | </property> | 476 | </property> |
| 484 | </widget> | 477 | </widget> |
| 485 | </item> | 478 | </item> |
| 486 | <item row="7" column="1"> | 479 | <item row="6" column="1"> |
| 487 | <widget class="QLineEdit" name="device_name_edit"> | 480 | <widget class="QLineEdit" name="device_name_edit"> |
| 488 | <property name="maxLength"> | 481 | <property name="maxLength"> |
| 489 | <number>128</number> | 482 | <number>128</number> |
| 490 | </property> | 483 | </property> |
| 491 | </widget> | 484 | </widget> |
| 492 | </item> | 485 | </item> |
| 493 | <item row="6" column="1"> | 486 | <item row="5" column="1"> |
| 494 | <widget class="QLineEdit" name="rng_seed_edit"> | 487 | <widget class="QLineEdit" name="rng_seed_edit"> |
| 495 | <property name="sizePolicy"> | 488 | <property name="sizePolicy"> |
| 496 | <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | 489 | <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
| @@ -511,22 +504,6 @@ | |||
| 511 | </property> | 504 | </property> |
| 512 | </widget> | 505 | </widget> |
| 513 | </item> | 506 | </item> |
| 514 | <item row="4" column="1"> | ||
| 515 | <widget class="QPushButton" name="button_regenerate_console_id"> | ||
| 516 | <property name="sizePolicy"> | ||
| 517 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
| 518 | <horstretch>0</horstretch> | ||
| 519 | <verstretch>0</verstretch> | ||
| 520 | </sizepolicy> | ||
| 521 | </property> | ||
| 522 | <property name="layoutDirection"> | ||
| 523 | <enum>Qt::RightToLeft</enum> | ||
| 524 | </property> | ||
| 525 | <property name="text"> | ||
| 526 | <string>Regenerate</string> | ||
| 527 | </property> | ||
| 528 | </widget> | ||
| 529 | </item> | ||
| 530 | </layout> | 507 | </layout> |
| 531 | </item> | 508 | </item> |
| 532 | </layout> | 509 | </layout> |