// // SimplePlayer::updatePlayerFrame from 0x50c708 to 0x50c9b0 (680 bytes) // // 17 xrefs: // > GJThreadCell::loadFromThread @ 0x42af00 // > GJScoreCell::loadFromScore @ 0x42d43a // > GJCompactUserCell::buildUserRow @ 0x42e200 // > GJLevelScoreCell::loadFromScore @ 0x431690 // > CommentCell::loadFromComment @ 0x4329a2 // > GJGarageLayer::onSelect @ 0x50cd62 // > SimplePlayer::asyncLoadIcon @ 0x50ce0e // > SimplePlayer::iconFinishedLoading @ 0x50ce3e // > SimplePlayer::init @ 0x50d2b6 // > GJItemIcon::init @ 0x50d52c // > GJGarageLayer::init @ 0x51063a // > GJBaseGameLayer::playExitDualEffect @ 0x58f3f0 // > ProfilePage::loadPageFromUserInfo @ 0x5f955a // > CharacterColorPage::toggleShip @ 0x69ca8c // > CharacterColorPage::init @ 0x69daaa // > sub_745C90 @ 0x745d32 // > ThreadViewPopup::mountVirtualRow @ 0x75f3da // // 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:51:28 +0000 // int __fastcall SimplePlayer::updatePlayerFrame(int a1, int a2, int a3) { GJRobotSprite *v6; // r5 int v7; // r0 int v8; // r0 GameManager *v9; // r0 int **v10; // r0 GJRobotSprite *v11; // r0 int v12; // r0 char *v13; // r1 cocos2d::CCString *v14; // r0 const char *CString; // r10 cocos2d::CCString *v16; // r0 const char *v17; // r9 char *v18; // r1 cocos2d::CCString *v19; // r0 const char *v20; // r8 char *v21; // r1 cocos2d::CCString *v22; // r0 int v23; // r3 cocos2d::CCString *v24; // r0 const char *v25; // r0 int *v26; // r8 int v27; // r3 int v28; // r4 void (__fastcall *v29)(int, _BYTE *); // r7 void (__fastcall *v30)(int *, _BYTE *); // r4 float v31; // r2 char *v33; // [sp+Ch] [bp-20h] _BYTE v34[8]; // [sp+10h] [bp-1Ch] BYREF int v35[2]; // [sp+18h] [bp-14h] BYREF char *v36; // [sp+20h] [bp-Ch] v35[0] = 0; v35[1] = 0; v36 = nullptr; switch ( a3 ) { case 1: std::string::assign(v35, "ship"); v6 = (GJRobotSprite *)(&dword_A8 + 1); break; case 2: std::string::assign(v35, "player_ball"); v6 = (GJRobotSprite *)(&dword_74 + 2); break; case 3: std::string::assign(v35, "bird"); v6 = (GJRobotSprite *)(&dword_94 + 1); break; case 4: std::string::assign(v35, "dart"); v6 = (GJRobotSprite *)&dword_60; break; case 5: std::string::assign(v35, "robot"); v6 = (GJRobotSprite *)&dword_44; break; case 6: std::string::assign(v35, "spider"); v6 = (GJRobotSprite *)(&dword_44 + 1); break; case 7: std::string::assign(v35, "swing"); v6 = (GJRobotSprite *)(&word_2A + 1); break; case 8: std::string::assign(v35, "jetpack"); v6 = (GJRobotSprite *)byte_8; break; default: std::string::assign(v35, "player"); v6 = (GJRobotSprite *)(&stru_1DC + 9); break; } v7 = *(_DWORD *)(a1 + 528); if ( v7 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v7 + 172))(v7, a3 == 5); v8 = *(_DWORD *)(a1 + 532); if ( v8 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v8 + 172))(v8, a3 == 6); (*(void (__fastcall **)(_DWORD, bool))(**(_DWORD **)(a1 + 508) + 172))( *(_DWORD *)(a1 + 508), (unsigned int)(a3 - 5) > 1); (*(void (__fastcall **)(_DWORD, bool))(**(_DWORD **)(a1 + 512) + 172))( *(_DWORD *)(a1 + 512), (unsigned int)(a3 - 5) > 1); v9 = (GameManager *)(*(int (__fastcall **)(_DWORD, bool))(**(_DWORD **)(a1 + 516) + 172))( *(_DWORD *)(a1 + 516), (unsigned int)(a3 - 5) > 1); if ( a2 <= (int)v6 && a2 <= 0 ) { v6 = (GJRobotSprite *)(&dword_0 + 1); } else if ( (int)v6 >= a2 ) { v6 = (GJRobotSprite *)a2; } v10 = (int **)GameManager::sharedState(v9); GameManager::loadIcon(v10, (int)v6, a3, *(_DWORD *)(a1 + 544)); if ( a3 == 5 ) { v11 = *(GJRobotSprite **)(a1 + 528); if ( !v11 ) { SimplePlayer::createRobotSprite(a1, v6); v12 = *(_DWORD *)(a1 + 528); LABEL_28: (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 172))(v12, 1); return std::string::~string((int)v35); } LABEL_26: GJRobotSprite::updateFrame(v11, (int)v6); return std::string::~string((int)v35); } if ( a3 == 6 ) { v11 = *(GJRobotSprite **)(a1 + 532); if ( !v11 ) { SimplePlayer::createSpiderSprite(a1, v6); v12 = *(_DWORD *)(a1 + 532); goto LABEL_28; } goto LABEL_26; } if ( (v35[0] & 1) != 0 ) v13 = v36; else v13 = (char *)v35 + 1; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%02d_001.png", v13, v6, LOBYTE(v35[0]) << 31); CString = (const char *)cocos2d::CCString::getCString(v14); if ( (v35[0] & 1) != 0 ) v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%02d_2_001.png", v36, v6); else v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%02d_2_001.png", (const char *)v35 + 1, v6); v17 = (const char *)cocos2d::CCString::getCString(v16); if ( a3 == 3 ) { if ( (v35[0] & 1) != 0 ) v18 = v36; else v18 = (char *)v35 + 1; v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%02d_3_001.png", v18, v6); v20 = (const char *)cocos2d::CCString::getCString(v19); } else { v20 = nullptr; } if ( (v35[0] & 1) != 0 ) v21 = v36; else v21 = (char *)v35 + 1; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_%02d_glow_001.png", v21, v6); v33 = (char *)cocos2d::CCString::getCString(v22); v23 = LOBYTE(v35[0]) << 31; if ( (v35[0] & 1) != 0 ) v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%02d_extra_001.png", v36, v6, v23); else v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%02d_extra_001.png", (const char *)v35 + 1, v6, v23); v25 = (const char *)cocos2d::CCString::getCString(v24); SimplePlayer::setFrames((SimplePlayer *)a1, CString, v17, v20, v33, v25); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 508) + 80))(*(_DWORD *)(a1 + 508), 1065353216); v26 = *(int **)(a1 + 508); v27 = *v26; if ( a3 == 2 ) { (*(void (__fastcall **)(_DWORD, int))(v27 + 80))(*(_DWORD *)(a1 + 508), 1063675494); v28 = *(_DWORD *)(a1 + 508); v29 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, 0.0); v29(v28, v34); } else { v30 = *(void (__fastcall **)(int *, _BYTE *))(v27 + 92); if ( a3 == 3 ) v31 = -7.0; else v31 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, v31); v30(v26, v34); } return std::string::~string((int)v35); }
GD Web Decomp Icon

GD Web Decomp

Raw Source