From 7d9c9643137c8b315784a8bb7356d5f7ccd4073e Mon Sep 17 00:00:00 2001 From: alk <45172705+altalk23@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:53:05 +0300 Subject: [PATCH] gjbgl (#697) * add gjbgl vectors * fixes to the vectors * more gjbgl members * another test run go * fix canpausegame --- bindings/2.206/GeometryDash.bro | 22 +++++++++++++++++----- test/members/Windows.cpp | 2 ++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/bindings/2.206/GeometryDash.bro b/bindings/2.206/GeometryDash.bro index 956e8cffd..07de5ee22 100644 --- a/bindings/2.206/GeometryDash.bro +++ b/bindings/2.206/GeometryDash.bro @@ -7945,11 +7945,23 @@ class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate { int m_unknown3494; // used in updateSpecialLabels gd::string m_pointsString; gd::vector*>*> m_sections; - PAD = win 0x90, android32 0x48, android64 0x90, mac 0x90, ios 0x90; + gd::vector*>*> m_nonEffectObjects; + gd::vector*> m_collisionBlockSections; + gd::vector m_calcNonEffectObjects; + int m_calcNonEffectObjectsSize; + gd::vector m_calcCollisionBlockObjects; + int m_calcCollisionBlockObjectsSize; + gd::vector m_calcCollisionBlockObjects2; + int m_calcCollisionBlockObjects2Size; gd::vector*> m_sectionSizes; - PAD = win 0x70, android32 0x38, android64 0x68, mac 0x58, ios 0x58; // mac not verified - gd::vector*> m_nonEffectObjectsPerSection; - PAD = win 0x10, android32 0xc, android64 0x10, mac 0x10, ios 0x10; + gd::vector*> m_nonEffectObjectsSizes; + gd::vector*> m_collisionBlockSectionSizes; + gd::vector*> m_nonEffectObjectsFlags; + float m_unknown35c0; + float m_unknown35c4; + float m_unknown35c8; + float m_unknown35cc; + gd::unordered_map m_stickyGroups; FMODLevelVisualizer* m_audioVisualizerBG; FMODLevelVisualizer* m_audioVisualizerSFX; bool m_showAudioVisualizer; @@ -14080,7 +14092,7 @@ class PlayLayer : GJBaseGameLayer, CCCircleWaveDelegate, CurrencyRewardDelegate, void applyEnterEffect(GameObject*, int, bool) = win 0x38e270; bool canPauseGame() = win inline, m1 0xaac6c, imac 0xbf610 { - return !m_hasCompletedLevel && !m_cantPause; + return !m_hasCompletedLevel && !m_levelEndAnimationStarted; } TodoReturn checkpointWithID(int); TodoReturn colorObject(int, cocos2d::ccColor3B); diff --git a/test/members/Windows.cpp b/test/members/Windows.cpp index f0ccb4c16..28471bee8 100644 --- a/test/members/Windows.cpp +++ b/test/members/Windows.cpp @@ -25,6 +25,8 @@ GEODE_MEMBER_CHECK(GJBaseGameLayer, m_temporaryParticles, 0x3118); GEODE_MEMBER_CHECK(GJBaseGameLayer, m_timePlayed, 0x3488); GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sections, 0x34b8); GEODE_MEMBER_CHECK(GJBaseGameLayer, m_sectionSizes, 0x3560); +GEODE_MEMBER_CHECK(GJBaseGameLayer, m_stickyGroups, 0x35d0); +GEODE_MEMBER_CHECK(GJBaseGameLayer, m_audioVisualizerBG, 0x3610); GEODE_MEMBER_CHECK(GJBaseGameLayer, m_loadingLayer, 0x3688); GEODE_SIZE_CHECK(PlayLayer, 0x3998);