From e4e92cb75c86b4340b34eb78ea982b603aa3c72f Mon Sep 17 00:00:00 2001 From: BytesGalore <3903215+BytesGalore@users.noreply.github.com> Date: Thu, 3 Mar 2022 06:45:13 +0100 Subject: [PATCH] loader: log the type of mismatching file-extension --- src/core/loader/loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 199e69e89..2bb0423b7 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -261,7 +261,8 @@ std::unique_ptr 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; }