summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-09-04 14:44:40 -0400
committerGravatar Zach Hilman2018-09-04 14:44:48 -0400
commit87be4bc283eee72a51b5e8391147c60671351b80 (patch)
treec369b13af5a30698564ee54acbae639be4576482 /src
parentcontrol_metadata: Use alternate language names if AmericanEnglish isn't avail... (diff)
downloadyuzu-87be4bc283eee72a51b5e8391147c60671351b80.tar.gz
yuzu-87be4bc283eee72a51b5e8391147c60671351b80.tar.xz
yuzu-87be4bc283eee72a51b5e8391147c60671351b80.zip
main: Only show DRD deprecation warning once
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/card_image.h1
-rw-r--r--src/core/file_sys/registered_cache.cpp1
-rw-r--r--src/core/file_sys/registered_cache.h1
-rw-r--r--src/core/file_sys/submission_package.cpp1
-rw-r--r--src/core/file_sys/submission_package.h3
-rw-r--r--src/core/loader/nsp.cpp2
-rw-r--r--src/yuzu/main.cpp16
7 files changed, 19 insertions, 6 deletions
diff --git a/src/core/file_sys/card_image.h b/src/core/file_sys/card_image.h
index bd8c0fcbf..ce514dfa0 100644
--- a/src/core/file_sys/card_image.h
+++ b/src/core/file_sys/card_image.h
@@ -10,7 +10,6 @@
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/swap.h" 11#include "common/swap.h"
12#include "core/file_sys/vfs.h" 12#include "core/file_sys/vfs.h"
13#include "core/loader/loader.h"
14 13
15namespace Loader { 14namespace Loader {
16enum class ResultStatus : u16; 15enum class ResultStatus : u16;
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index 94268d127..cf6f77401 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -13,6 +13,7 @@
13#include "core/file_sys/content_archive.h" 13#include "core/file_sys/content_archive.h"
14#include "core/file_sys/nca_metadata.h" 14#include "core/file_sys/nca_metadata.h"
15#include "core/file_sys/registered_cache.h" 15#include "core/file_sys/registered_cache.h"
16#include "core/file_sys/submission_package.h"
16#include "core/file_sys/vfs_concat.h" 17#include "core/file_sys/vfs_concat.h"
17#include "core/loader/loader.h" 18#include "core/loader/loader.h"
18 19
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index 50e26f8fb..467ceeef1 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -17,6 +17,7 @@
17namespace FileSys { 17namespace FileSys {
18class CNMT; 18class CNMT;
19class NCA; 19class NCA;
20class NSP;
20class XCI; 21class XCI;
21 22
22enum class ContentRecordType : u8; 23enum class ContentRecordType : u8;
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp
index ce05a5845..bde879861 100644
--- a/src/core/file_sys/submission_package.cpp
+++ b/src/core/file_sys/submission_package.cpp
@@ -7,6 +7,7 @@
7#include "common/hex_util.h" 7#include "common/hex_util.h"
8#include "core/file_sys/content_archive.h" 8#include "core/file_sys/content_archive.h"
9#include "core/file_sys/nca_metadata.h" 9#include "core/file_sys/nca_metadata.h"
10#include "core/file_sys/partition_filesystem.h"
10#include "core/file_sys/submission_package.h" 11#include "core/file_sys/submission_package.h"
11#include "core/loader/loader.h" 12#include "core/loader/loader.h"
12 13
diff --git a/src/core/file_sys/submission_package.h b/src/core/file_sys/submission_package.h
index 482a8b71f..0292164f9 100644
--- a/src/core/file_sys/submission_package.h
+++ b/src/core/file_sys/submission_package.h
@@ -13,10 +13,11 @@
13#include "core/file_sys/romfs_factory.h" 13#include "core/file_sys/romfs_factory.h"
14#include "core/file_sys/vfs.h" 14#include "core/file_sys/vfs.h"
15#include "core/loader/loader.h" 15#include "core/loader/loader.h"
16#include "romfs_factory.h"
17 16
18namespace FileSys { 17namespace FileSys {
19 18
19class PartitionFilesystem;
20
20class NSP : public ReadOnlyVfsDirectory { 21class NSP : public ReadOnlyVfsDirectory {
21public: 22public:
22 explicit NSP(VirtualFile file); 23 explicit NSP(VirtualFile file);
diff --git a/src/core/loader/nsp.cpp b/src/core/loader/nsp.cpp
index b59d40052..7c06239f2 100644
--- a/src/core/loader/nsp.cpp
+++ b/src/core/loader/nsp.cpp
@@ -8,7 +8,7 @@
8#include "core/file_sys/card_image.h" 8#include "core/file_sys/card_image.h"
9#include "core/file_sys/content_archive.h" 9#include "core/file_sys/content_archive.h"
10#include "core/file_sys/control_metadata.h" 10#include "core/file_sys/control_metadata.h"
11#include "core/file_sys/registered_cache.h" 11#include "core/file_sys/nca_metadata.h"
12#include "core/file_sys/romfs.h" 12#include "core/file_sys/romfs.h"
13#include "core/file_sys/submission_package.h" 13#include "core/file_sys/submission_package.h"
14#include "core/hle/kernel/process.h" 14#include "core/hle/kernel/process.h"
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 @@
34#include "core/file_sys/content_archive.h" 34#include "core/file_sys/content_archive.h"
35#include "core/file_sys/registered_cache.h" 35#include "core/file_sys/registered_cache.h"
36#include "core/file_sys/savedata_factory.h" 36#include "core/file_sys/savedata_factory.h"
37#include "core/file_sys/submission_package.h"
37#include "core/file_sys/vfs_real.h" 38#include "core/file_sys/vfs_real.h"
39#include "core/hle/kernel/process.h"
38#include "core/hle/service/filesystem/filesystem.h" 40#include "core/hle/service/filesystem/filesystem.h"
39#include "core/loader/loader.h" 41#include "core/loader/loader.h"
40#include "core/perf_stats.h" 42#include "core/perf_stats.h"
@@ -76,6 +78,7 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
76 */ 78 */
77enum class CalloutFlag : uint32_t { 79enum class CalloutFlag : uint32_t {
78 Telemetry = 0x1, 80 Telemetry = 0x1,
81 DRDDeprecation = 0x2,
79}; 82};
80 83
81static void ShowCalloutMessage(const QString& message, CalloutFlag flag) { 84static void ShowCalloutMessage(const QString& message, CalloutFlag flag) {
@@ -488,14 +491,21 @@ bool GMainWindow::LoadROM(const QString& filename) {
488 491
489 const Core::System::ResultStatus result{system.Load(*render_window, filename.toStdString())}; 492 const Core::System::ResultStatus result{system.Load(*render_window, filename.toStdString())};
490 493
491 if (system.GetAppLoader().GetFileType() == Loader::FileType::DeconstructedRomDirectory) { 494 const auto drd_callout =
495 (UISettings::values.callout_flags & static_cast<u32>(CalloutFlag::DRDDeprecation)) == 0;
496
497 if (result == Core::System::ResultStatus::Success &&
498 system.GetAppLoader().GetFileType() == Loader::FileType::DeconstructedRomDirectory &&
499 drd_callout) {
500 UISettings::values.callout_flags |= static_cast<u32>(CalloutFlag::DRDDeprecation);
492 QMessageBox::warning( 501 QMessageBox::warning(
493 this, tr("Warning Outdated Game Format"), 502 this, tr("Warning Outdated Game Format"),
494 tr("You are using the deconstructed ROM directory format for this game, which is an " 503 tr("You are using the deconstructed ROM directory format for this game, which is an "
495 "outdated format that has been superseded by others such as NCA, NAX, XCI, or " 504 "outdated format that has been superseded by others such as NCA, NAX, XCI, or "
496 "NSP.<br><br>For an explanation of the various Switch formats yuzu supports, <a " 505 "NSP. Deconstructed ROM directories lack icons, metadata, and update "
506 "support.<br><br>For an explanation of the various Switch formats yuzu supports, <a "
497 "href='https://yuzu-emu.org/wiki/overview-of-switch-game-formats'>check out our " 507 "href='https://yuzu-emu.org/wiki/overview-of-switch-game-formats'>check out our "
498 "wiki</a>.")); 508 "wiki</a>. This message will not be shown again."));
499 } 509 }
500 510
501 render_window->DoneCurrent(); 511 render_window->DoneCurrent();