Browse Source
loader: log the type of mismatching file-extension
pull/15/merge
BytesGalore
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/core/loader/loader.cpp
|
|
|
@ -261,7 +261,8 @@ std::unique_ptr<AppLoader> GetLoader(Core::System& system, FileSys::VirtualFile |
|
|
|
|
|
|
|
// Special case: 00 is either a NCA or NAX.
|
|
|
|
if (type != filename_type && !(file->GetName() == "00" && type == FileType::NAX)) { |
|
|
|
LOG_WARNING(Loader, "File {} has a different type than its extension.", file->GetName()); |
|
|
|
LOG_WARNING(Loader, "File {} has a different type ({}) than its extension.", |
|
|
|
file->GetName(), GetFileTypeString(type)); |
|
|
|
if (FileType::Unknown == type) { |
|
|
|
type = filename_type; |
|
|
|
} |
|
|
|
|