// // SoundPackDescPopup::onSave from 0x785990 to 0x785a68 (216 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:59:32 +0000 // int __fastcall SoundPackDescPopup::onSave(SoundPackDescPopup *this, cocos2d::CCObject *a2) { int v2; // r2 EmoteSprite *String; // r0 int v5; // r0 int v6; // r2 int v7; // r3 cocos2d::CCDirector *v8; // r0 int *v9; // r0 int v10; // r0 cocos2d::CCTouchDispatcher *v11; // r0 void (__fastcall ***v12)(_DWORD, int *, char *); // r0 int v14[3]; // [sp+Ch] [bp-20h] BYREF int v15[3]; // [sp+18h] [bp-14h] BYREF v2 = *((_DWORD *)this + 180); if ( v2 ) { String = CCTextInputNode::getString((CCTextInputNode *)v14, v2); } else { memset(v14, 0, sizeof(v14)); String = (EmoteSprite *)std::string::__init(v14, &unk_B6B226, 0); } v5 = EmoteSprite::maxEmotesComment(String); v8 = (cocos2d::CCDirector *)EmoteSprite::effectiveLength((unsigned __int8 *)v14, v5, v6, v7); if ( (int)v8 <= 140 ) { v10 = cocos2d::CCDirector::sharedDirector(v8); v11 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 80))(v10); cocos2d::CCTouchDispatcher::unregisterForcePrio(v11, this); v12 = *((void (__fastcall ****)(_DWORD, int *, char *))this + 179); if ( v12 ) (**v12)(v12, v14, (char *)this + 728); (*(void (__fastcall **)(SoundPackDescPopup *, _DWORD))(*(_DWORD *)this + 684))(this, 0); } else { memset(v15, 0, sizeof(v15)); std::string::__init(v15, "Description is too long.", 0x18u); v9 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Description", (int)v15, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(int *))(*v9 + 656))(v9); std::string::~string((int)v15); } return std::string::~string((int)v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source