Skip to content

Commit

Permalink
hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Oct 8, 2024
1 parent 258b47a commit bec390c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
bindings: hiimjustin000/bindings
bindings-ref: ccmotionstreak
build-config: ${{ matrix.config.build-config || 'Release' }}
export-pdb: true
combine: true
Expand Down
6 changes: 6 additions & 0 deletions src/hooks/PlayerObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@ class $modify(MIPlayerObject, PlayerObject) {
if (m_regularTrail) m_regularTrail->removeFromParent();
m_regularTrail = CCMotionStreak::create(0.3f, 5.0f, 14.0f, { 255, 255, 255 },
CCTextureCache::get()->textureForKey(MoreIcons::TRAIL_TEXTURES[trailFile].c_str()));
#if defined(GEODE_IS_ANDROID32)
*reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(m_regularTrail) + 0x168) = 50.0f;
#elif defined(GEODE_IS_ANDROID64)
*reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(m_regularTrail) + 0x1c8) = 50.0f;
#else
m_regularTrail->setM_fMaxSeg(50.0f);
#endif
m_parentLayer->addChild(m_regularTrail, -2);
m_regularTrail->stopStroke();
}
Expand Down

0 comments on commit bec390c

Please sign in to comment.