From 1a32bae941ca88e374f991ade8b6a3edeb3dbbf9 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 7 Aug 2020 06:25:10 +0100 Subject: [PATCH] Update new world code for logging --- src/world/World.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/world/World.cpp b/src/world/World.cpp index fb7a4b9..5079685 100644 --- a/src/world/World.cpp +++ b/src/world/World.cpp @@ -19,8 +19,8 @@ namespace Feather { if (!fs::exists(path) || (dir && !fs::is_directory(path))) { - if (dir) Log_Error("Cannot find folder \"%s\"", path.string().c_str()); - else Log_Error("Cannot find file \"%s\"", path.string().c_str()); + if (dir) Log::Error("Cannot find folder \"{}\"", path.string().c_str()); + else Log::Error("Cannot find file \"{}\"", path.string().c_str()); return false; } @@ -40,7 +40,7 @@ namespace Feather if (!CheckPath(levelDatPath)) return; - Log_Info("Loading world \"%s\"", name.c_str()); + Log::Info("Loading world \"{}\"", name.c_str()); NBT::CompoundTag levelDat = NBT::CompoundTag(levelDatPath.string().c_str());