diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a13da1c..5e530f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - "main" + - "**" jobs: build: @@ -14,31 +14,23 @@ jobs: config: - name: Windows os: windows-latest - - # - name: macOS - # os: macos-latest - - #- name: Android32 - # os: ubuntu-latest - # target: Android32 - - #- name: Android64 - # os: ubuntu-latest - # target: Android64 name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build the mod uses: geode-sdk/build-geode-mod@main with: - sdk: nightly + sdk: 'v3.4.0' + cli: 'v3.2.0' + bindings: geode-sdk/bindings + bindings-ref: main combine: true target: ${{ matrix.config.target }} - + package: name: Package builds runs-on: ubuntu-latest @@ -48,7 +40,7 @@ jobs: - uses: geode-sdk/build-geode-mod/combine@main id: build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: Build Output path: ${{ steps.build.outputs.build-output }} \ No newline at end of file diff --git a/mod.json b/mod.json index f6fe965..03565ee 100644 --- a/mod.json +++ b/mod.json @@ -1,7 +1,9 @@ { - "geode": "2.0.0", - "gd": "2.204", - "version": "v1.0.2", + "geode": "3.4.0", + "gd": { + "win": "2.206" + }, + "version": "v1.0.3", "id": "colon.gold_user_coins", "name": "Gold User Coins", "developer": "Colon", diff --git a/src/main.cpp b/src/main.cpp index 1bbd0c8..2ab63c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,9 +54,9 @@ class $modify(LoadingLayer) { // it's somewhere in EnhancedGameObject::updateUserCoin // first one makes it so (if (isCoin && objectID != 142) { ... }) never runs, 142 is secret coin ID // second and third changes the coin pickup effect to not be silver for user coins - Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x14740a), { 0xEB }); - Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x14afa8), { 0xEB }); // something 0xc8ffff - Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x14b035), { 0xEB }); // something concat21 0xffff + Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x19c9e8), { 0x83 }); + Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x1a14c1), { 0x74 }); // something 0xc8ffff + Mod::get()->patch(reinterpret_cast(geode::base::get() + 0x1a154d), { 0x74 }); // something concat21 0xffff // todo: android support. but that requires arm knowledge }