mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 08:12:44 +01:00
Merge pull request #7976 from BytesGalore/master
loader: log the type of mismatching file-extension
This commit is contained in:
commit
04afcfe115
1 changed files with 2 additions and 1 deletions
|
@ -261,7 +261,8 @@ std::unique_ptr<AppLoader> GetLoader(Core::System& system, FileSys::VirtualFile
|
||||||
|
|
||||||
// Special case: 00 is either a NCA or NAX.
|
// Special case: 00 is either a NCA or NAX.
|
||||||
if (type != filename_type && !(file->GetName() == "00" && type == FileType::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) {
|
if (FileType::Unknown == type) {
|
||||||
type = filename_type;
|
type = filename_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue