diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro index 596dbd57..934303a6 100644 --- a/bindings/GeometryDash.bro +++ b/bindings/GeometryDash.bro @@ -2614,7 +2614,7 @@ class GameLevelManager : cocos2d::CCNode { GJGameLevel* getMainLevel(int id, bool unk) = win 0xa0940; bool hasLikedItemFullCheck(LikeItemType type, int itemID, int commentSourceID) = mac 0x2d83d0; bool hasRatedLevelStars(int levelID) = mac 0x2ca3a0; - void ProcessHttpRequest(gd::string, gd::string, gd::string, int) = mac 0x2a8670, win 0x9f8e0; + callback void ProcessHttpRequest(gd::string, gd::string, gd::string, int) = mac 0x2a8670, win 0x9f8e0; cocos2d::CCDictionary* responseToDict(gd::string response, bool comment) = win 0xbba50; void storeUserNames(gd::string) = win 0xa1840; gd::string userNameForUserID(int id) = win 0xa1c20; diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt index 960f382c..bbe71559 100644 --- a/codegen/CMakeLists.txt +++ b/codegen/CMakeLists.txt @@ -4,7 +4,7 @@ project(Codegen LANGUAGES C CXX) include(../cmake/CPM.cmake) CPMAddPackage("gh:fmtlib/fmt#9.1.0") -CPMAddPackage("gh:geode-sdk/Broma#eb45fab") +CPMAddPackage("gh:geode-sdk/Broma#b1adda0") file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp diff --git a/codegen/src/Shared.hpp b/codegen/src/Shared.hpp index c93f398e..e6dcffaa 100644 --- a/codegen/src/Shared.hpp +++ b/codegen/src/Shared.hpp @@ -163,7 +163,7 @@ namespace codegen { if (status == BindStatus::Binded) return "x86::Cdecl"; else return "x86::Optcall"; } - else if (fn->is_virtual) { + else if (fn->is_virtual || fn->is_callback) { return "x86::Thiscall"; } else {