Skip to content

Commit

Permalink
update v2.2.0 (v4 port test 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgRod committed Nov 12, 2024
1 parent af44f7c commit 45ce4b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions mod.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
5 changes: 2 additions & 3 deletions src/IconHack.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/GameManager.hpp>
#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<bool>("icon-hack")) {
if (GameManager::isIconUnlocked(_id, _type)) return true;
if (_id <= 0) return false;
return true;
Expand All @@ -17,7 +16,7 @@ class $modify(GameManager) {
}

bool isColorUnlocked(int _id, UnlockType _type) {
if (hacks::getInstance().isHackEnabled("color-hack")) {
if (Mod::get()->getSettingValue<bool>("icon-hack")) {
if (GameManager::isColorUnlocked(_id, _type)) return true;
return true;
} else {
Expand Down

0 comments on commit 45ce4b9

Please sign in to comment.