// // LevelSearchLayer::demonFilterSelectClosed from 0x100054660 to 0x100054720 (192 bytes) // // 2 xrefs: // > sub_10005473C @ 0x100054740 // > @ 0x100772400 // // 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 LevelSearchLayer::demonFilterSelectClosed(LevelSearchLayer *a1, int a2) { GameLevelManager *v4; // x0 cocos2d::CCString *v5; // x0 const char *CString; // x0 cocos2d::CCSprite *m_lastDifficultySprite; // x19 cocos2d::CCSpriteFrameCache *v8; // x0 std::string *v9; // x1 cocos2d::CCSpriteFrame *v10; // x0 std::string v11; // [xsp+8h] [xbp-28h] BYREF v4 = GameLevelManager::sharedState(); GameLevelManager::setIntForKey(v4, a2, "demon_filter"); memset(&v11, 0, sizeof(v11)); if ( a2 ) { v5 = (cocos2d::CCString *)sub_100268F4C("difficulty_%02d_btn2_001.png", a2); CString = cocos2d::CCString::getCString(v5); std::string::assign(&v11, CString); } else { std::string::assign(&v11, "difficulty_06_btn_001.png"); } m_lastDifficultySprite = a1->m_lastDifficultySprite; v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v9 = &v11; else v9 = (std::string *)v11.__r_.__value_.__r.__words[0]; v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, (const char *)v9); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_lastDifficultySprite->setDisplayFrame)( m_lastDifficultySprite, v10); if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v11.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source