fix: msvc build fail (#12)

This commit is contained in:
zhenyan121
2026-05-28 21:55:44 +08:00
committed by GitHub
parent 5901ab7cd9
commit a0139dd315

View File

@@ -87,10 +87,10 @@ void BlockManager::init() {
} }
toml::table block; toml::table block;
try { try {
block = toml::parse_file(entry.path().c_str()); block = toml::parse_file(entry.path().string());
} catch (const toml::parse_error& err) { } catch (const toml::parse_error& err) {
Logger::error("Load Block Data {} Fail, Parser Error {}", Logger::error("Load Block Data {} Fail, Parser Error {}",
entry.path().c_str(), err.what()); entry.path().string(), err.what());
ASSERT(false); ASSERT(false);
} }
auto id = block["id"].value<int>(); auto id = block["id"].value<int>();