Update new world code for logging
This commit is contained in:
parent
79c277a440
commit
1a32bae941
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue