summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-04-25 02:17:03 +0200
committerLioncash <mathew1800@gmail.com>2018-04-25 02:22:32 +0200
commitcc2e14ec2a2a0ae5217244237b112fdd1b464d6e (patch)
tree90382480815cdcd710d343ae8438371023f0b10d /src/core/loader/loader.cpp
parentMerge pull request #386 from Subv/gpu_query (diff)
downloadyuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar.gz
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar.bz2
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar.lz
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar.xz
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.tar.zst
yuzu-cc2e14ec2a2a0ae5217244237b112fdd1b464d6e.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 2ec08506d..6a4fd38cb 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -41,7 +41,7 @@ FileType IdentifyFile(FileUtil::IOFile& file, const std::string& filepath) {
FileType IdentifyFile(const std::string& file_name) {
FileUtil::IOFile file(file_name, "rb");
if (!file.IsOpen()) {
- LOG_ERROR(Loader, "Failed to load file %s", file_name.c_str());
+ NGLOG_ERROR(Loader, "Failed to load file {}", file_name);
return FileType::Unknown;
}
@@ -116,7 +116,7 @@ static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileTyp
std::unique_ptr<AppLoader> GetLoader(const std::string& filename) {
FileUtil::IOFile file(filename, "rb");
if (!file.IsOpen()) {
- LOG_ERROR(Loader, "Failed to load file %s", filename.c_str());
+ NGLOG_ERROR(Loader, "Failed to load file {}", filename);
return nullptr;
}
@@ -127,12 +127,12 @@ std::unique_ptr<AppLoader> GetLoader(const std::string& filename) {
FileType filename_type = GuessFromExtension(filename_extension);
if (type != filename_type) {
- LOG_WARNING(Loader, "File %s has a different type than its extension.", filename.c_str());
+ NGLOG_WARNING(Loader, "File {} has a different type than its extension.", filename);
if (FileType::Unknown == type)
type = filename_type;
}
- LOG_DEBUG(Loader, "Loading file %s as %s...", filename.c_str(), GetFileTypeString(type));
+ NGLOG_DEBUG(Loader, "Loading file {} as {}...", filename, GetFileTypeString(type));
return GetFileLoader(std::move(file), type, filename_filename, filename);
}