// // SearchSFXPopup::init from 0x584558 to 0x5846c8 (368 bytes) // // 1 xrefs: // > SearchSFXPopup::create @ 0x58478c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall SearchSFXPopup::init(SetTextPopup *a1) { int v2; // r9 cocos2d::CCDirector *v3; // r0 GameManager *v4; // r0 bool GameVariable; // r10 cocos2d::CCNode *m_buttonMenu; // r11 cocos2d::CCObject *m_mainLayer; // [sp+30h] [bp-3Ch] _BYTE v9[4]; // [sp+40h] [bp-2Ch] BYREF cocos2d::CCSize v10; // [sp+44h] [bp-28h] BYREF cocos2d::CCPoint v11; // [sp+4Ch] [bp-20h] BYREF cocos2d::CCPoint v12; // [sp+54h] [bp-18h] BYREF ButtonSprite *v13; // [sp+5Ch] [bp-10h] BYREF unsigned int v14; // [sp+60h] [bp-Ch] sub_775C20(&v10); sub_776584((int)&v11, "Search"); sub_776584((int)&v12, "Find SFX"); sub_776584((int)&v13, "OK"); v2 = SetTextPopup::init(a1, COERCE_FLOAT(&v10), (const char **)&v11, 20, (int)&v12, &v13, 1, 60.0); sub_774008(&v13); sub_774008(&v12); sub_774008(&v11); sub_774008(&v10); if ( v2 ) { v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v10, v3); sub_776584((int)v9, "Folder\nName"); v13 = (ButtonSprite *)SearchSFXPopup::onSearchFolders; v14 = 0; v4 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v4, "0147"); m_buttonMenu = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v11, (float)(v10.width * 0.5) - 124.0, (float)(v10.height * 0.5) + 10.0); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v12, 8.0, 0.0); GameToolbox::createToggleButton( (int)v9, (unsigned int)v13, v14, GameVariable, m_buttonMenu, &v11, a1, m_mainLayer, 0.8, 0.3, 0.0, (int)&v12, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(v9); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source