// // LevelInfoLayer::FLAlert_Clicked from 0x7e83c0 to 0x7e8558 (408 bytes) // // 3 xrefs: // > `non-virtual thunk to'LevelInfoLayer::FLAlert_Clicked @ 0x7e855c // > @ 0xe5a50 // > @ 0x143c128 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:30 +0000 // __int64 __fastcall LevelInfoLayer::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, unsigned __int8 a3) { int v4; // w20 __int64 result; // x0 __int64 v6; // x19 GameLevelManager *v7; // x0 __int64 v8; // x19 GameLevelManager *v9; // x0 v4 = a3; result = (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) - 4; switch ( (int)result ) { case 0: if ( v4 ) result = LevelInfoLayer::onDelete((LevelInfoLayer *)this, nullptr); break; case 1: if ( v4 ) result = LevelInfoLayer::onOwnerDelete((LevelInfoLayer *)this, nullptr); break; case 2: if ( v4 ) result = LevelInfoLayer::onClone(this, nullptr); break; case 3: result = LevelInfoLayer::onRate((LevelInfoLayer *)this, nullptr); break; case 4: result = LevelInfoLayer::onRateStars((LevelInfoLayer *)this, nullptr); break; case 5: if ( v4 ) { *((_BYTE *)*(this + 63) + 1048) = 1; result = LevelInfoLayer::onPlay((LevelInfoLayer *)this, nullptr); } break; case 6: if ( v4 ) { *((_BYTE *)*(this + 63) + 1200) = 1; result = LevelInfoLayer::onPlay((LevelInfoLayer *)this, nullptr); } break; case 7: if ( v4 ) { v6 = (__int64)*(this + 63); if ( v6 ) { v7 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result); result = (unsigned int)GameLevelManager::getHighestLevelOrder(v7) + 1; *(_DWORD *)(v6 + 632) = result; } } break; case 8: if ( v4 ) { v8 = (__int64)*(this + 63); if ( v8 ) { v9 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result); result = (unsigned int)GameLevelManager::getLowestLevelOrder(v9) - 1; *(_DWORD *)(v8 + 632) = result; } } break; case 10: *((_BYTE *)*(this + 63) + 1200) = 1; if ( v4 ) *((_BYTE *)this + 744) = 1; else GJGameLevel::clearPlatformerSave(*(this + 63)); result = LevelInfoLayer::onPlay((LevelInfoLayer *)this, nullptr); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source