temporarily comment out trysavegame hook

This commit is contained in:
altalk23 2023-01-13 09:12:50 +03:00
parent 9cff0ae2fb
commit a15e8cb30f
3 changed files with 16 additions and 15 deletions

View file

@ -103,7 +103,10 @@ target_link_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lo
CPMAddPackage("gh:fmtlib/fmt#9.1.0")
CPMAddPackage("gh:gulrak/filesystem#3e5b930")
target_link_libraries(${PROJECT_NAME} INTERFACE ghc_filesystem fmt)
# Tulip hook (hooking)
CPMAddPackage("gh:altalk23/TulipHook#d911a46")
target_link_libraries(${PROJECT_NAME} INTERFACE ghc_filesystem fmt TulipHookInclude)
if (NOT EXISTS ${GEODE_BIN_PATH})

View file

@ -135,11 +135,9 @@ CPMAddPackage("gh:google/re2#954656f")
target_include_directories(${PROJECT_NAME} PRIVATE ${md4c_SOURCE_DIR}/src)
# Tulip hook (hooking)
CPMAddPackage("gh:altalk23/TulipHook#2347311")
target_link_libraries(${PROJECT_NAME} md4c z TulipHook geode-sdk re2)
# Use precompiled headers for faster builds
if (NOT GEODE_DISABLE_PRECOMPILED_HEADERS)
target_precompile_headers(${PROJECT_NAME} PRIVATE

View file

@ -4,17 +4,17 @@ USE_GEODE_NAMESPACE();
#include <Geode/modify/AppDelegate.hpp>
struct SaveLoader : Modify<SaveLoader, AppDelegate> {
void trySaveGame() {
log::info("Saving...");
// struct SaveLoader : Modify<SaveLoader, AppDelegate> {
// void trySaveGame() {
// log::info("Saving...");
auto r = Loader::get()->saveData();
if (!r) {
log::info("{}", r.unwrapErr());
}
// auto r = Loader::get()->saveData();
// if (!r) {
// log::info("{}", r.unwrapErr());
// }
log::info("Saved");
// log::info("Saved");
return AppDelegate::trySaveGame();
}
};
// return AppDelegate::trySaveGame();
// }
// };