mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
fix file::readFromJson
This commit is contained in:
parent
196d50ee9b
commit
0a145550ed
2 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ if (DEFINED GEODE_TULIPHOOK_REPO_PATH)
|
|||
message(STATUS "Using ${GEODE_TULIPHOOK_REPO_PATH} for TulipHook")
|
||||
add_subdirectory(${GEODE_TULIPHOOK_REPO_PATH} ${GEODE_TULIPHOOK_REPO_PATH}/build)
|
||||
else()
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#a416a7b")
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#58dc814")
|
||||
endif()
|
||||
set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "" FORCE)
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace geode::utils::file {
|
|||
if (!json.template is<T>()) {
|
||||
return Err("JSON is not of type {}", typeid(T).name());
|
||||
}
|
||||
return json.template as<T>();
|
||||
return Ok(json.template as<T>());
|
||||
}
|
||||
|
||||
GEODE_DLL Result<> writeString(ghc::filesystem::path const& path, std::string const& data);
|
||||
|
|
Loading…
Add table
Reference in a new issue