From 4fb16098a471c54a8a81de70bc45e5a21b730552 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Mon, 23 Jul 2018 17:37:07 +0800 Subject: [PATCH] core/loader: avoid "different type" warning for .app Previously for installed titles, the file type would be NCCH (assumed as CXI) and the extension would be ".app". This would trigger a warning of the file "having a different type than its extension", which is actually not true here. --- src/core/loader/loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 8c9c7778b..a75c56249 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -57,7 +57,7 @@ FileType GuessFromExtension(const std::string& extension_) { if (extension == ".cci" || extension == ".3ds") return FileType::CCI; - if (extension == ".cxi") + if (extension == ".cxi" || extension == ".app") return FileType::CXI; if (extension == ".3dsx")