diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2bb2ae..ab9baae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/src/hooks/PlayerObject.cpp b/src/hooks/PlayerObject.cpp index 570d0cd..4dedb4d 100644 --- a/src/hooks/PlayerObject.cpp +++ b/src/hooks/PlayerObject.cpp @@ -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(reinterpret_cast(m_regularTrail) + 0x168) = 50.0f; + #elif defined(GEODE_IS_ANDROID64) + *reinterpret_cast(reinterpret_cast(m_regularTrail) + 0x1c8) = 50.0f; + #else m_regularTrail->setM_fMaxSeg(50.0f); + #endif m_parentLayer->addChild(m_regularTrail, -2); m_regularTrail->stopStroke(); }