Skip to content

Commit 4d63f99

Browse files
committed
Revert "CCMenu::create with variadic arguments"
This reverts commit 15a1b6e.
1 parent 15a1b6e commit 4d63f99

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

bindings/2.2081/Cocos2d.bro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,11 +2237,11 @@ class cocos2d::CCLiquid : cocos2d::CCGrid3DAction {
22372237

22382238
[[link(win, android)]]
22392239
class cocos2d::CCMenu : cocos2d::CCLayerRGBA {
2240+
// static cocos2d::CCMenu* create(cocos2d::CCMenuItem*, ...) = ios 0x1d8d28, m1 0x6a6d58, imac 0x79e7b0;
2241+
22402242
static cocos2d::CCMenu* create() = imac 0x792c40, m1 0x69b524, ios 0x1d7eac;
2241-
static cocos2d::CCMenu* create(cocos2d::CCMenuItem*, ...) = mac inline, ios inline;
22422243
static cocos2d::CCMenu* createWithArray(cocos2d::CCArray*) = imac 0x792e40, m1 0x69b67c, ios 0x1d7f58;
22432244
static cocos2d::CCMenu* createWithItem(cocos2d::CCMenuItem*) = imac 0x793090, m1 0x69b8c8, ios 0x1d8198;
2244-
static cocos2d::CCMenu* createWithItems(cocos2d::CCMenuItem*, va_list) = m1 0x69b570, imac 0x792d00, ios 0x1d7ef8;
22452245

22462246
virtual bool init() = imac 0x7930a0, m1 0x69b8e8, ios 0x1d81b8;
22472247
virtual void addChild(cocos2d::CCNode*) = imac 0x7930b0, m1 0x69b8f0, ios 0x1d81c0;
@@ -2267,6 +2267,7 @@ class cocos2d::CCMenu : cocos2d::CCLayerRGBA {
22672267
void alignItemsInRowsWithArray(cocos2d::CCArray*);
22682268
void alignItemsVertically();
22692269
void alignItemsVerticallyWithPadding(float) = imac 0x7936b0, m1 0x69bf08, ios 0x1d85b8;
2270+
// static cocos2d::CCMenu* createWithItems(cocos2d::CCMenuItem*, char*);
22702271
void giveMenuTouchPriority() = imac 0x7931b0, m1 0x69b9dc, ios 0x1d8284;
22712272
bool initWithArray(cocos2d::CCArray*) = imac 0x792f10, m1 0x69b734, ios 0x1d8004;
22722273
cocos2d::CCMenuItem* itemForTouch(cocos2d::CCTouch*) = imac 0x7933a0, m1 0x69bbc4, ios 0x1d8414;

bindings/2.2081/inline/CCMenu.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
#include <Geode/Bindings.hpp>
22

3-
#if defined(GEODE_IS_MACOS) || defined(GEODE_IS_IOS)
4-
cocos2d::CCMenu* cocos2d::CCMenu::create(cocos2d::CCMenuItem* item, ...) {
5-
va_list args;
6-
va_start(args, item);
7-
auto ret = cocos2d::CCMenu::createWithItems(item, args);
8-
va_end(args);
9-
return ret;
10-
}
11-
#endif
123

134
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
145
#endif

0 commit comments

Comments
 (0)