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