diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-04 14:44:40 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-09-04 14:44:48 -0400 |
commit | 87be4bc283eee72a51b5e8391147c60671351b80 (patch) | |
tree | c369b13af5a30698564ee54acbae639be4576482 /src/yuzu | |
parent | e973cceaddf060b3738417504856db1baa4a04fa (diff) |
main: Only show DRD deprecation warning once
Diffstat (limited to 'src/yuzu')
-rw-r--r-- | src/yuzu/main.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 037bf2aef..56bd3ee2e 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -34,7 +34,9 @@ #include "core/file_sys/content_archive.h" #include "core/file_sys/registered_cache.h" #include "core/file_sys/savedata_factory.h" +#include "core/file_sys/submission_package.h" #include "core/file_sys/vfs_real.h" +#include "core/hle/kernel/process.h" #include "core/hle/service/filesystem/filesystem.h" #include "core/loader/loader.h" #include "core/perf_stats.h" @@ -76,6 +78,7 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; */ enum class CalloutFlag : uint32_t { Telemetry = 0x1, + DRDDeprecation = 0x2, }; static void ShowCalloutMessage(const QString& message, CalloutFlag flag) { @@ -488,14 +491,21 @@ bool GMainWindow::LoadROM(const QString& filename) { const Core::System::ResultStatus result{system.Load(*render_window, filename.toStdString())}; - if (system.GetAppLoader().GetFileType() == Loader::FileType::DeconstructedRomDirectory) { + const auto drd_callout = + (UISettings::values.callout_flags & static_cast<u32>(CalloutFlag::DRDDeprecation)) == 0; + + if (result == Core::System::ResultStatus::Success && + system.GetAppLoader().GetFileType() == Loader::FileType::DeconstructedRomDirectory && + drd_callout) { + UISettings::values.callout_flags |= static_cast<u32>(CalloutFlag::DRDDeprecation); QMessageBox::warning( this, tr("Warning Outdated Game Format"), tr("You are using the deconstructed ROM directory format for this game, which is an " "outdated format that has been superseded by others such as NCA, NAX, XCI, or " - "NSP.<br><br>For an explanation of the various Switch formats yuzu supports, <a " + "NSP. Deconstructed ROM directories lack icons, metadata, and update " + "support.<br><br>For an explanation of the various Switch formats yuzu supports, <a " "href='https://yuzu-emu.org/wiki/overview-of-switch-game-formats'>check out our " - "wiki</a>.")); + "wiki</a>. This message will not be shown again.")); } render_window->DoneCurrent(); |