fix file::readFromJson

This commit is contained in:
HJfod 2024-05-09 10:57:12 +03:00
parent 196d50ee9b
commit 0a145550ed
2 changed files with 2 additions and 2 deletions
CMakeLists.txt
loader/include/Geode/utils

View file

@ -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)

View file

@ -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);