From a0139dd31543f12fc9e3fa8ed06ce2d5d00d1228 Mon Sep 17 00:00:00 2001 From: zhenyan121 <104683324+zhenyan121@users.noreply.github.com> Date: Thu, 28 May 2026 21:55:44 +0800 Subject: [PATCH] fix: msvc build fail (#12) --- src/block.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block.cpp b/src/block.cpp index 5e8e5eb..273fdf5 100644 --- a/src/block.cpp +++ b/src/block.cpp @@ -87,10 +87,10 @@ void BlockManager::init() { } toml::table block; try { - block = toml::parse_file(entry.path().c_str()); + block = toml::parse_file(entry.path().string()); } catch (const toml::parse_error& err) { Logger::error("Load Block Data {} Fail, Parser Error {}", - entry.path().c_str(), err.what()); + entry.path().string(), err.what()); ASSERT(false); } auto id = block["id"].value();