diff --git a/changelog.md b/changelog.md index 54793f2..f07d9ca 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +# v2.2.2 + +- Updated to Geode v4.0.0 (GD 2.2073) + +# v2.1.2 + +- Fixed fatal error + # v2.1.1 - Added support for Geodify mod diff --git a/mod.json b/mod.json index a2671d6..1d814bb 100644 --- a/mod.json +++ b/mod.json @@ -1,13 +1,14 @@ { - "geode": "3.3.1", - "version": "v2.1.2", + "geode": "4.0.0", + "version": "v2.2.2", "gd": { - "win": "2.206", - "android": "2.206" + "win": "2.2073", + "android": "2.2073" }, "resources": { "sprites": [ - "res/sprites/*.png" + "res/sprites/*.png", + "about-assets/*.png" ], "files": [ "res/videos/*" diff --git a/src/IconHack.cpp b/src/IconHack.cpp index 2b6faa0..fefb84f 100644 --- a/src/IconHack.cpp +++ b/src/IconHack.cpp @@ -1,11 +1,12 @@ #include #include +#include "../../hacks.hpp" using namespace geode::prelude; class $modify(GameManager) { bool isIconUnlocked(int _id, IconType _type) { - if (Mod::get()->getSettingValue("icon-hack")) { + if (hacks::getInstance().isHackEnabled("icon-hack")) { if (GameManager::isIconUnlocked(_id, _type)) return true; if (_id <= 0) return false; return true; @@ -16,7 +17,7 @@ class $modify(GameManager) { } bool isColorUnlocked(int _id, UnlockType _type) { - if (Mod::get()->getSettingValue("icon-hack")) { + if (hacks::getInstance().isHackEnabled("color-hack")) { if (GameManager::isColorUnlocked(_id, _type)) return true; return true; } else {