// // RenameThreadPopup::onSave from 0x754a34 to 0x754b5c (296 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:58:54 +0000 // int __fastcall RenameThreadPopup::onSave(RenameThreadPopup *this, cocos2d::CCObject *a2) { int v3; // r2 GameLevelManager *String; // r0 GameLevelManager *v5; // r2 int v6; // r3 unsigned __int8 *v7; // r3 GameLevelManager *v8; // r1 int v9; // r7 int v10; // r8 void (__fastcall *v11)(int, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v12; // r0 GameManager *v13; // r0 GameLevelManager *updated; // r0 int v16; // [sp+8h] [bp-2Ch] BYREF int v17; // [sp+Ch] [bp-28h] GameLevelManager *v18; // [sp+10h] [bp-24h] int v19[3]; // [sp+14h] [bp-20h] BYREF int v20[3]; // [sp+20h] [bp-14h] BYREF v3 = *((_DWORD *)this + 181); if ( v3 ) { String = CCTextInputNode::getString((CCTextInputNode *)&v16, v3); } else { v16 = 0; v17 = 0; v18 = nullptr; String = (GameLevelManager *)std::string::__init(&v16, &unk_B6B226, 0); } if ( (v16 & 1) != 0 ) { v5 = v18; v6 = v17; } else { v6 = (int)(unsigned __int8)v16 >> 1; v5 = (GameLevelManager *)((char *)&v16 + 1); } if ( v6 ) { v7 = (unsigned __int8 *)v5 + v6; v8 = v5; while ( 1 ) { String = v8; if ( v8 == (GameLevelManager *)v7 ) break; v9 = *(unsigned __int8 *)v8; v8 = (GameLevelManager *)((char *)v8 + 1); if ( v9 != 32 ) { if ( String - v5 == -1 ) break; v13 = (GameManager *)GameLevelManager::sharedState(String); updated = (GameLevelManager *)GameLevelManager::updateThread( v13, *(const char **)(*((_DWORD *)this + 179) + 52), 2, (unsigned __int8 *)&v16); if ( updated ) { *(_DWORD *)(GameLevelManager::sharedState(updated) + 840) = (char *)this + 712; std::string::operator=((unsigned __int8 *)this + 728, (unsigned __int8 *)&v16); *((_BYTE *)this + 740) = 1; } return std::string::~string((int)&v16); } } } v10 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(String) + 220); v11 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v10 + 232); memset(v19, 0, sizeof(v19)); std::string::__init(v19, "Enter a name", 0xCu); memset(v20, 0, sizeof(v20)); std::string::__init(v20, &unk_B6B226, 0); v12 = TextAlertPopup::create((int)v19, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v20); v11(v10, v12, 1000); std::string::~string((int)v20); std::string::~string((int)v19); return std::string::~string((int)&v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source