// // MenuGameLayer::getBGColor from 0x10039a97c to 0x10039aa58 (220 bytes) // // 2 xrefs: // > MenuGameLayer::init @ 0x10039a674 // > MenuGameLayer::updateColor @ 0x10039acc8 // // 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 // cocos2d::ccColor3B __fastcall MenuGameLayer::getBGColor(MenuGameLayer *a1, int a2) { int v2; // w19 GameManager *v3; // x0 int v4; // w0 while ( a2 > 3 ) { if ( a2 <= 5 ) { if ( a2 == 4 ) v2 = 10; else v2 = 11; goto LABEL_20; } if ( a2 == 6 ) { v2 = 1; goto LABEL_20; } if ( a2 == 7 ) { v2 = 3; goto LABEL_20; } LABEL_13: if ( a2 <= 0 ) a2 = -(-a2 & 7); else a2 &= 7u; } if ( a2 > 1 ) { if ( a2 == 2 ) v2 = 8; else v2 = 9; goto LABEL_20; } if ( a2 ) { if ( a2 == 1 ) { v2 = 7; LABEL_20: v3 = GameManager::sharedState(); *(cocos2d::ccColor3B *)&v4 = GameManager::colorForIdx(v3, v2); return (cocos2d::ccColor3B)v4; } goto LABEL_13; } return (cocos2d::ccColor3B)16737792; }
GD Web Decomp Icon

GD Web Decomp

Raw Source