yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

yuzu/configuration/configure_system: Specify string conversions explicitly

Allows the system config code to build successfully with implicit string
conversions disabled.
This commit is contained in:
Lioncash 2019-05-19 12:56:39 -04:00
parent 428d8098a7
commit d9c4d64ed5
1 changed files with 3 additions and 2 deletions

View File

@ -66,8 +66,9 @@ void ConfigureSystem::setConfiguration() {
ui->rng_seed_checkbox->setChecked(Settings::values.rng_seed.has_value()); ui->rng_seed_checkbox->setChecked(Settings::values.rng_seed.has_value());
ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.has_value()); ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.has_value());
const auto rng_seed = const auto rng_seed = QStringLiteral("%1")
QString("%1").arg(Settings::values.rng_seed.value_or(0), 8, 16, QLatin1Char{'0'}).toUpper(); .arg(Settings::values.rng_seed.value_or(0), 8, 16, QLatin1Char{'0'})
.toUpper();
ui->rng_seed_edit->setText(rng_seed); ui->rng_seed_edit->setText(rng_seed);
ui->custom_rtc_checkbox->setChecked(Settings::values.custom_rtc.has_value()); ui->custom_rtc_checkbox->setChecked(Settings::values.custom_rtc.has_value());