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.
This commit is contained in:
zhupengfei 2018-07-23 17:37:07 +08:00
parent bf6da61da5
commit 4fb16098a4
No known key found for this signature in database
GPG key ID: 85B82A3E62174206

View file

@ -57,7 +57,7 @@ FileType GuessFromExtension(const std::string& extension_) {
if (extension == ".cci" || extension == ".3ds") if (extension == ".cci" || extension == ".3ds")
return FileType::CCI; return FileType::CCI;
if (extension == ".cxi") if (extension == ".cxi" || extension == ".app")
return FileType::CXI; return FileType::CXI;
if (extension == ".3dsx") if (extension == ".3dsx")