From 53f630640143c7e36f0e157987b51956c9088c93 Mon Sep 17 00:00:00 2001 From: YellowCat98 Date: Wed, 28 Feb 2024 15:56:56 +0100 Subject: [PATCH] amazing additions --- .github/workflows/action.yml | 4 ++++ .github/workflows/build.yml | 4 ++++ .github/workflows/main.yml | 4 ++++ CHANGELOG.md | 6 +++++- mod.json | 8 +++++++- src/main.cpp | 6 +++++- 6 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index f5ddc1c..d1ce86a 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -18,6 +18,10 @@ jobs: - name: Android64 os: ubuntu-latest target: Android64 + + - name: Android32 + os: ubuntu-latest + target: Android32 name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5ddc1c..e46a6d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,10 @@ jobs: os: ubuntu-latest target: Android64 + - name: Android32 + os: ubuntu-latest + target: Android32 + name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f5ddc1c..e46a6d4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,10 @@ jobs: os: ubuntu-latest target: Android64 + - name: Android32 + os: ubuntu-latest + target: Android32 + name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 9760d77..fbea3d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,8 @@ # 1.1.0 - Ability to hide the "lite" subtext. - Ability to remove the "GDLite. Free Trial" watermark from PlayLayer -- Android64 support \ No newline at end of file +- Android64 support + +# 1.2.0 +- Ability to remove More games menu modification (to fix compatibility with other mods) +- Android32 support \ No newline at end of file diff --git a/mod.json b/mod.json index 7faaef9..52d721a 100644 --- a/mod.json +++ b/mod.json @@ -4,7 +4,7 @@ "win": "2.204", "android": "2.205" }, - "version": "v1.1.0", + "version": "v1.2.0", "id": "yellowcat98.gdlite", "name": "GDLite", "developer": "YellowCat98", @@ -33,6 +33,12 @@ "description": "Hides the 'GDLite, Free Trial' watermark from PlayLayer.", "type": "bool", "default": false + }, + "remove-more-games-menu-modification" : { + "name": "Remove More Games Menu Modification", + "description": "Remove more games menu modification to prevent incompatibility", + "type": "bool", + "default": false } } } diff --git a/src/main.cpp b/src/main.cpp index 512da4f..f0f81cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,7 +11,6 @@ using namespace geode::prelude; using namespace cocos2d; -using namespace std; class $modify(MenuLayer) { bool init() { @@ -105,6 +104,10 @@ class $modify(GJMoreGamesLayer) { CCLayer* cclayer = dynamic_cast(getChildren()->objectAtIndex(0)); + auto hidemgmm = Mod::get()->getSettingValue("remove-more-games-menu-modification"); + + if (!hidemgmm) { + CCSprite* gjmpromo = CCSprite::create("promo_gjm-hd.png"_spr); CCSprite* gjzpromo = CCSprite::create("promo_gjz-hd.png"_spr); CCSprite* gjwpromo = CCSprite::create("promo_gjw-hd.png"_spr); @@ -130,6 +133,7 @@ class $modify(GJMoreGamesLayer) { cclayer->addChild(gjwpromo); cclayer->addChild(gjmpromo); cclayer->addChild(easports); + } #endif }