Skip to content

Commit

Permalink
Merge pull request #9 from Alphalaneous/2206
Browse files Browse the repository at this point in the history
2.206 Support
  • Loading branch information
GDColon authored Aug 11, 2024
2 parents 6c05e90 + 06fc4b0 commit 845c67e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- "main"
- "**"

jobs:
build:
Expand All @@ -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
Expand All @@ -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 }}
8 changes: 5 additions & 3 deletions mod.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void*>(geode::base::get() + 0x14740a), { 0xEB });
Mod::get()->patch(reinterpret_cast<void*>(geode::base::get() + 0x14afa8), { 0xEB }); // something 0xc8ffff
Mod::get()->patch(reinterpret_cast<void*>(geode::base::get() + 0x14b035), { 0xEB }); // something concat21 0xffff
Mod::get()->patch(reinterpret_cast<void*>(geode::base::get() + 0x19c9e8), { 0x83 });
Mod::get()->patch(reinterpret_cast<void*>(geode::base::get() + 0x1a14c1), { 0x74 }); // something 0xc8ffff
Mod::get()->patch(reinterpret_cast<void*>(geode::base::get() + 0x1a154d), { 0x74 }); // something concat21 0xffff

// todo: android support. but that requires arm knowledge
}

0 comments on commit 845c67e

Please sign in to comment.