// // GJDifficultySprite::getDifficultyFrame from 0x1402a5070 to 0x1402a5148 (216 bytes) // // 3 xrefs: // > GJDifficultySprite::create @ 0x1402a5007 // > GJDifficultySprite::updateDifficultyFrame @ 0x1402a5174 // > @ 0x1406d206c // // 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 // // Hidden C++ exception states: #wind=1 void **__fastcall GJDifficultySprite::getDifficultyFrame(void **Src, int a2, int a3) { cocos2d::CCString *v6; // rax const char *CString; // rax size_t v8; // r8 size_t v9; // r8 char *v10; // rdx v6 = cocos2d::CCString::createWithFormat("difficulty_%02d_", a2); CString = cocos2d::CCString::getCString(v6); *(_OWORD *)Src = 0; Src[2] = nullptr; Src[3] = nullptr; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Src, CString, v8); if ( a3 == 1 && (unsigned int)(a2 - 6) <= 4 ) { v9 = 12; v10 = "btn2_001.png"; } else { v9 = 11; v10 = "btn_001.png"; } sub_140041270(Src, v10, v9); if ( a2 == -1 ) sub_14003CCE0(Src, "difficulty_auto_btn_001.png", 0x1Bu); return Src; }