Update new world code for logging

This commit is contained in:
Joshua Ashton 2020-08-07 06:25:10 +01:00
parent 79c277a440
commit 1a32bae941
1 changed files with 3 additions and 3 deletions

View File

@ -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());