// // LevelInfoLayer::onPlayReplay from 0x1002c44b0 to 0x1002c4604 (340 bytes) // // 0 xrefs: // // 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 // void __fastcall LevelInfoLayer::onPlayReplay(LevelInfoLayer *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 GJGameLevel *m_level; // rax std::string *p_m_levelString; // rax FMODAudioEngine *v5; // rax FMODAudioEngine *v6; // rax cocos2d::CCDirector *v7; // rbx cocos2d::CCScene *v8; // rax cocos2d::CCTransitionFade *v9; // rax __int64 v10; // rbx __int128 v11; // [rsp+0h] [rbp-40h] BYREF void *longStorage; // [rsp+10h] [rbp-30h] void *v13[5]; // [rsp+18h] [rbp-28h] BYREF if ( a1->m_isBusy ) return; m_level = a1->m_level; if ( m_level->m_levelType == SearchResult ) goto LABEL_12; if ( (m_level->m_levelString.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v11, m_level->m_levelString.m_data.m_long.longStorage, m_level->m_levelString.m_data.m_long.size, v2); } else { p_m_levelString = &m_level->m_levelString; longStorage = p_m_levelString->m_data.m_long.longStorage; v11 = *(_OWORD *)&p_m_levelString->m_data.m_short.sizex2; } if ( (v11 & 1) != 0 ) { v10 = *((_QWORD *)&v11 + 1); operator delete(longStorage); if ( v10 ) goto LABEL_8; LABEL_12: LevelInfoLayer::downloadLevel(a1); return; } if ( !((unsigned __int8)v11 >> 1) ) goto LABEL_12; LABEL_8: v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, 1); v6 = FMODAudioEngine::sharedEngine(); strcpy((char *)v13, " playSound_01.ogg"); FMODAudioEngine::playEffect(v6, v13, 1.0, 0.0, 0.30000001); if ( ((__int64)v13[0] & 1) != 0 ) operator delete(v13[2]); GameManager::sharedState()->m_sceneEnum = 3; v7 = cocos2d::CCDirector::sharedDirector(); v8 = PlayLayer::scene(a1->m_level, 1, 0); v9 = cocos2d::CCTransitionFade::create_1(0.5, v8); cocos2d::CCDirector::replaceScene(v7, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source