From 3b8f549dccfd9ce2e5e42b0f67a1111ba8b1eb79 Mon Sep 17 00:00:00 2001 From: FireMario211 <17692105+FireMario211@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:47:55 -0400 Subject: [PATCH] yay or nay --- .github/workflows/build.yml | 4 ++-- src/main.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2a1c09..33b687f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: submodules: 'recursive' - name: Build the mod - uses: geode-sdk/build-geode-mod@main + uses: FireMario211/build-geode-mod@main with: build-config: 'RelWithDebInfo' export-pdb: true @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest needs: ['build'] steps: - - uses: geode-sdk/build-geode-mod/combine@main + - uses: FireMario211/build-geode-mod/combine@main id: build - uses: actions/upload-artifact@v4 diff --git a/src/main.cpp b/src/main.cpp index 9811713..3434bfd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,10 +32,9 @@ bool firstLoad = false; class $modify(MenuLayer) { bool init() { if (!MenuLayer::init()) return false; + if (firstLoad) return true; HackItem* posX = Hacks::getHack("Button Position X"); HackItem* posY = Hacks::getHack("Button Position Y"); - auto mainMenu = static_cast(this->getChildByID("bottom-menu")); - if (firstLoad) return true; firstLoad = true; log::info("Prism Menu loaded! Enjoy the mod."); #ifndef GEODE_IS_MACOS