Skip to content

Commit

Permalink
hopefully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMario211 committed Jan 20, 2024
1 parent ff05d06 commit 141fc4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
#sdk: nightly
combine: true
configure-args: '-DGEODE_DISABLE_FMT_CONSTEVAL=1'
target: ${{ matrix.config.target }}

package:
Expand Down
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,11 +1010,13 @@ class $modify(GameObject) {
#ifdef GEODE_IS_WINDOWS
objectID = *reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(this) + 0x384); // absolutely cursed
objectType = *reinterpret_cast<GameObjectType*>(reinterpret_cast<uintptr_t>(this) + 0x31c);
#elif GEODE_IS_ANDROID32
#else
#ifdef GEODE_IS_ANDROID32
objectID = this->m_objectID;
objectType = this->m_objectType;
#else // android 64 (BROKEN)
#else // android 64 (BROKEN)
objectType = *reinterpret_cast<GameObjectType*>(reinterpret_cast<uintptr_t>(this) + 0x904);
#endif
#endif
if (!Hacks::isHackEnabled("Layout Mode")) return GameObject::setVisible(v);
GameObject::setVisible(v);
Expand Down

0 comments on commit 141fc4e

Please sign in to comment.