From ed442702fe793531e465520b6afa5a28d5df7871 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Mon, 10 Apr 2023 17:12:49 +0300 Subject: [PATCH 1/3] make ModStateFilter copy ctor default --- loader/include/Geode/loader/ModEvent.hpp | 2 +- loader/src/loader/ModEvent.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/loader/include/Geode/loader/ModEvent.hpp b/loader/include/Geode/loader/ModEvent.hpp index 9e683820..524c9dd2 100644 --- a/loader/include/Geode/loader/ModEvent.hpp +++ b/loader/include/Geode/loader/ModEvent.hpp @@ -52,7 +52,7 @@ namespace geode { * @param type Type of event to listen to. Ignored if mod is nullptr */ ModStateFilter(Mod* mod, ModEventType type); - ModStateFilter(ModStateFilter const&); + ModStateFilter(ModStateFilter const&) = default; }; } diff --git a/loader/src/loader/ModEvent.cpp b/loader/src/loader/ModEvent.cpp index 2b32ef21..2abdd2c4 100644 --- a/loader/src/loader/ModEvent.cpp +++ b/loader/src/loader/ModEvent.cpp @@ -21,5 +21,3 @@ ListenerResult ModStateFilter::handle(utils::MiniFunction fn, ModState } ModStateFilter::ModStateFilter(Mod* mod, ModEventType type) : m_mod(mod), m_type(type) {} - -ModStateFilter::ModStateFilter(ModStateFilter const& other) : m_mod(other.m_mod), m_type(other.m_type) {} From 938f8947e1b1aa43a12d120887ac5fd68b22f9a9 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Mon, 10 Apr 2023 18:17:41 +0300 Subject: [PATCH 2/3] add missing bindings for mosue api --- bindings/Cocos2d.bro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index 696ceb3b..82e8f2f5 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -137,6 +137,7 @@ class cocos2d::CCDirector { auto calculateDeltaTime() = mac 0x2497a0; auto calculateMPF() = mac 0x19eac0; auto convertToGL(cocos2d::CCPoint const&) = mac 0x24a210; + auto convertToUI(cocos2d::CCPoint const&) = mac 0x24a340; auto drawScene() = mac 0x249690; auto willSwitchToScene(cocos2d::CCScene* scene); @@ -190,6 +191,10 @@ class cocos2d::CCEaseBackIn { static cocos2d::CCEaseBackIn* create(cocos2d::CCActionInterval*) = mac 0x2a41b0; } +class cocos2d::CCEaseElasticIn { + static cocos2d::CCEaseElasticIn* create(cocos2d::CCActionInterval*, float) = mac 0x2a2e00; +} + class cocos2d::CCEaseElasticOut { static cocos2d::CCEaseElasticOut* create(cocos2d::CCActionInterval*, float) = mac 0x2a3080; } @@ -724,6 +729,11 @@ class cocos2d::CCScaleTo { static cocos2d::CCScaleTo* create(float, float, float) = mac 0x1f70f0; } +class cocos2d::CCScaleBy { + static cocos2d::CCScaleTo* create(float, float) = mac 0x1f73c0; + static cocos2d::CCScaleTo* create(float, float, float) = mac 0x1f7480; +} + class cocos2d::CCScene { static cocos2d::CCScene* create() = mac 0x13c140, ios 0x163070; auto getHighestChildZ() = mac 0x13c200, ios 0x1630e4; @@ -745,6 +755,8 @@ class cocos2d::CCSequence { class cocos2d::CCSet { CCSet() = mac 0x45ad80, ios 0x10e870; + static auto create() = mac 0x45b0b0; + auto addObject(cocos2d::CCObject*) = mac 0x45b1f0; virtual ~CCSet() = mac 0x45b050, ios 0x10ebcc; virtual auto acceptVisitor(cocos2d::CCDataVisitor&) = mac 0x45b090, ios 0x10ec04; auto anyObject() = mac 0x45b410; From 9e04a3b03052d32550808aa62dba5cde1f4c38e3 Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Tue, 11 Apr 2023 13:46:08 -0300 Subject: [PATCH 3/3] biding geometrydash.bro yummy void gets --- bindings/GeometryDash.bro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 259de99b..a5f05a6b 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -4676,7 +4676,7 @@ class PlayerObject : GameObject, AnimatedSpriteDelegate { void flipGravity(bool, bool) = mac 0x21c090, win 0x1f59d0; void flipMod() = mac 0x21a4c0; void getActiveMode() = mac 0x22b950, win 0x1f5df0; - void getModifiedSlopeYVel() = mac 0x21bff0, win 0x1ea870; + float getModifiedSlopeYVel() = mac 0x21bff0, win 0x1ea870; void getOldPosition(float) = mac 0x21a830; void getSecondColor() = mac 0x22cee0; void gravityDown() = mac 0x22e930;