Add callback keyword to codegen

This commit is contained in:
altalk23 2023-02-26 18:21:04 +03:00
parent 0f5cb409d7
commit 5c495717e7
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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

View file

@ -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 {