From 953efcc46c6d5ce4c58394b934a665a7ec24421c Mon Sep 17 00:00:00 2001 From: Stazzical <64915620+Stazzical@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:34:15 +0330 Subject: [PATCH 1/4] Attempt to add ObjectDecoderDelegate --- bindings/2.2081/Cocos2d.bro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/2.2081/Cocos2d.bro b/bindings/2.2081/Cocos2d.bro index 86b75de2f..d150bcc58 100644 --- a/bindings/2.2081/Cocos2d.bro +++ b/bindings/2.2081/Cocos2d.bro @@ -5965,6 +5965,11 @@ class DS_Dictionary { bool vec2FromString(gd::string const&, cocos2d::CCPoint&) = m1 0x140824, imac 0x17a9b0; } +[[link(win, android)]] +class ObjectDecoderDelegate { + virtual cocos2d::CCObject* getDecodedObject(int objectType, DS_Dictionary* data) = inline; +} + [[link(win, android)]] class ObjectDecoder : cocos2d::CCNode { // virtual ~ObjectDecoder(); @@ -5974,6 +5979,8 @@ class ObjectDecoder : cocos2d::CCNode { virtual bool init() = imac 0x792390, m1 0x69aaf4, ios 0x235a58; cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*) = imac 0x7923a0, m1 0x69aaf8, ios 0x235a5c; + + ObjectDecoderDelegate* m_delegate; } [[link(win, android)]] From b7f7f66b9c7464950c74e6e37a61c7f8b45220b2 Mon Sep 17 00:00:00 2001 From: Stazzical <64915620+Stazzical@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:43:46 +0330 Subject: [PATCH 2/4] Add inline file --- bindings/2.2081/inline/ObjectDecoderDelegate.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bindings/2.2081/inline/ObjectDecoderDelegate.cpp diff --git a/bindings/2.2081/inline/ObjectDecoderDelegate.cpp b/bindings/2.2081/inline/ObjectDecoderDelegate.cpp new file mode 100644 index 000000000..c156f7bc1 --- /dev/null +++ b/bindings/2.2081/inline/ObjectDecoderDelegate.cpp @@ -0,0 +1,12 @@ +#include + + +#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS) +#endif + +#if defined(GEODE_IS_WINDOWS) +#endif + +#if defined(GEODE_IS_IOS) +#endif + From 62f213557b71e9beacd0194db0c54a6f77c60518 Mon Sep 17 00:00:00 2001 From: Stazzical <64915620+Stazzical@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:53:42 +0330 Subject: [PATCH 3/4] Remove link Windows it doesn't exist there --- bindings/2.2081/Cocos2d.bro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/2.2081/Cocos2d.bro b/bindings/2.2081/Cocos2d.bro index d150bcc58..a57016eb4 100644 --- a/bindings/2.2081/Cocos2d.bro +++ b/bindings/2.2081/Cocos2d.bro @@ -5965,7 +5965,7 @@ class DS_Dictionary { bool vec2FromString(gd::string const&, cocos2d::CCPoint&) = m1 0x140824, imac 0x17a9b0; } -[[link(win, android)]] +[[link(android)]] class ObjectDecoderDelegate { virtual cocos2d::CCObject* getDecodedObject(int objectType, DS_Dictionary* data) = inline; } From 371f6bbf881ce29ed573c375825d82321ce28c10 Mon Sep 17 00:00:00 2001 From: Stazzical <64915620+Stazzical@users.noreply.github.com> Date: Tue, 28 Jul 2026 03:55:35 +0330 Subject: [PATCH 4/4] Add two inlined functions --- bindings/2.2081/Cocos2d.bro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/2.2081/Cocos2d.bro b/bindings/2.2081/Cocos2d.bro index a57016eb4..fc27870d3 100644 --- a/bindings/2.2081/Cocos2d.bro +++ b/bindings/2.2081/Cocos2d.bro @@ -5976,9 +5976,12 @@ class ObjectDecoder : cocos2d::CCNode { static ObjectDecoder* sharedDecoder() = imac 0x792320, m1 0x69aa80, ios 0x2359f0; + cocos2d::CCObject* getDecodedObject(int objectType, DS_Dictionary* data) = imac 0x7923a0, m1 0x69aaf8, ios 0x235a5c; + virtual bool init() = imac 0x792390, m1 0x69aaf4, ios 0x235a58; - cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*) = imac 0x7923a0, m1 0x69aaf8, ios 0x235a5c; + ObjectDecoderDelegate const* getDelegate() = inline; + void setDelegate(ObjectDecoderDelegate*) = inline; ObjectDecoderDelegate* m_delegate; }