mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
fix: msvc build fail (#12)
This commit is contained in:
@@ -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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user