From 45ce4b9e2e53aae411ff1ef261fb8426be3ddd9e Mon Sep 17 00:00:00 2001 From: OmgRod Date: Tue, 12 Nov 2024 20:34:49 +0000 Subject: [PATCH] update v2.2.0 (v4 port test 1) --- CMakeLists.txt | 2 ++ changelog.md | 4 ++-- mod.json | 6 +++--- src/IconHack.cpp | 5 ++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61566b5..b7304f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,8 @@ else() message(STATUS "Found Geode: $ENV{GEODE_SDK}") endif() +set(GEODE_LINK_NIGHTLY ON) + add_subdirectory($ENV{GEODE_SDK} $ENV{GEODE_SDK}/build) if(WIN32) diff --git a/changelog.md b/changelog.md index f07d9ca..138eeed 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ -# v2.2.2 +# v2.2.0 -- Updated to Geode v4.0.0 (GD 2.2073) +- Updated to Geode v4 # v2.1.2 diff --git a/mod.json b/mod.json index 1d814bb..68f7d12 100644 --- a/mod.json +++ b/mod.json @@ -1,9 +1,9 @@ { "geode": "4.0.0", - "version": "v2.2.2", + "version": "v2.2.0", "gd": { - "win": "2.2073", - "android": "2.2073" + "win": "2.2074", + "android": "2.2074" }, "resources": { "sprites": [ diff --git a/src/IconHack.cpp b/src/IconHack.cpp index fefb84f..2b6faa0 100644 --- a/src/IconHack.cpp +++ b/src/IconHack.cpp @@ -1,12 +1,11 @@ #include #include -#include "../../hacks.hpp" using namespace geode::prelude; class $modify(GameManager) { bool isIconUnlocked(int _id, IconType _type) { - if (hacks::getInstance().isHackEnabled("icon-hack")) { + if (Mod::get()->getSettingValue("icon-hack")) { if (GameManager::isIconUnlocked(_id, _type)) return true; if (_id <= 0) return false; return true; @@ -17,7 +16,7 @@ class $modify(GameManager) { } bool isColorUnlocked(int _id, UnlockType _type) { - if (hacks::getInstance().isHackEnabled("color-hack")) { + if (Mod::get()->getSettingValue("icon-hack")) { if (GameManager::isColorUnlocked(_id, _type)) return true; return true; } else {