3
0
Fork 0
forked from suyu/suyu

loader: log the type of mismatching file-extension

This commit is contained in:
BytesGalore 2022-03-03 06:45:13 +01:00 committed by GitHub
parent a31c195749
commit e4e92cb75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}