mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix filesystem path from json
This commit is contained in:
parent
a42b81ae5e
commit
4ad9c848c0
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ struct matjson::Serialize<std::filesystem::path> {
|
|||
return path.string();
|
||||
}
|
||||
static std::filesystem::path from_json(matjson::Value const& value) {
|
||||
return value.as_string();
|
||||
return std::filesystem::path(value.as_string()).make_preferred();
|
||||
}
|
||||
static bool is_json(matjson::Value const& value) {
|
||||
return value.is_string();
|
||||
|
|
Loading…
Reference in a new issue