// // CharacterColorPage::activeColorForMode from 0x10012a2cc to 0x10012a328 (92 bytes) // // 1 xrefs: // > CharacterColorPage::onPlayerColor @ 0x10012a104 // // 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 // int __fastcall CharacterColorPage::activeColorForMode(CharacterColorPage *a1, int a2) { GameManager *v2; // x0 int random; // w8 int seed; // w9 GameManager *v5; // x0 GameManager *v6; // x0 switch ( a2 ) { case 2: v6 = GameManager::sharedState(); random = v6->m_playerGlowColor.random; seed = v6->m_playerGlowColor.seed; return random - seed; case 1: v5 = GameManager::sharedState(); random = v5->m_playerColor2.random; seed = v5->m_playerColor2.seed; return random - seed; case 0: v2 = GameManager::sharedState(); random = v2->m_playerColor.random; seed = v2->m_playerColor.seed; return random - seed; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source