diff options
| author | crueter <crueter@eden-emu.dev> | 2026-01-28 21:16:32 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-01-28 21:16:32 +0100 |
| commit | 283b94056df02f94d80b58370718a151b9b2971e (patch) | |
| tree | 0718bf689b10baec9c851b7791eace3a961ae7b6 /src | |
| parent | 770be310303dd92e596a4cf3a096e225d0f6e7f7 (diff) | |
[desktop] Allow installation of keys from the initial warning box (#3402)
whynot
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3402
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt_common/util/content.cpp | 5 | ||||
| -rw-r--r-- | src/yuzu/main_window.cpp | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/qt_common/util/content.cpp b/src/qt_common/util/content.cpp index c190e11410..9ba5ab264c 100644 --- a/src/qt_common/util/content.cpp +++ b/src/qt_common/util/content.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #include "qt_common/util/content.h" @@ -267,9 +267,8 @@ void InstallKeys() {}, QtCommon::Frontend::Option::ReadOnly); - if (key_source_location.isEmpty()) { + if (key_source_location.isEmpty()) return; - } FirmwareManager::KeyInstallResult result = FirmwareManager::InstallKeys(key_source_location.toStdString(), "keys"); diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp index 62e410e3c5..85980b5396 100644 --- a/src/yuzu/main_window.cpp +++ b/src/yuzu/main_window.cpp @@ -4275,9 +4275,15 @@ void MainWindow::OnMouseActivity() { void MainWindow::OnCheckFirmwareDecryption() { if (!ContentManager::AreKeysPresent()) { - QMessageBox::warning(this, tr("Derivation Components Missing"), - tr("Encryption keys are missing.")); + const auto res = QtCommon::Frontend::Warning( + tr("Derivation Components Missing"), + tr("Decryption keys are missing. Install them now?"), + QtCommon::Frontend::StandardButton::Yes | QtCommon::Frontend::StandardButton::No); + + if (res == QtCommon::Frontend::StandardButton::Yes) + OnInstallDecryptionKeys(); } + SetFirmwareVersion(); UpdateMenuState(); } |
