// // SupportLayer::onLowDetail from 0x1404c9d60 to 0x1404c9fe6 (646 bytes) // // 2 xrefs: // > SupportLayer::createToggleButton @ 0x1404c91b2 // > @ 0x1406dd340 // // 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=6 void SupportLayer::onLowDetail(SupportLayer *a1, cocos2d::CCObject *a2) { __int64 v2; // rdi cocos2d::CCString *v3; // rax const char *CString; // rbx cocos2d::CCTextureCache *v5; // rax int i; // edi cocos2d::CCString *v7; // rax const char *v8; // rbx __int64 v9; // rcx __int64 v10; // rax __int64 v11; // rbx __int64 v12; // rax FLAlertLayer *v13; // rbx __int128 v14; // [rsp+50h] [rbp-48h] BYREF __int64 v15; // [rsp+60h] [rbp-38h] __int64 v16; // [rsp+68h] [rbp-30h] _BYTE v17[40]; // [rsp+70h] [rbp-28h] BYREF void *v18; // [rsp+B0h] [rbp+18h] void *v19; // [rsp+B0h] [rbp+18h] void *v20; // [rsp+B0h] [rbp+18h] v2 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v18 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = qword_1406C2ED8; } if ( *(_DWORD *)(v2 + 960) ) { v3 = cocos2d::CCString::createWithFormat("game_bg_%02d_001.png", *(_DWORD *)(v2 + 960)); CString = cocos2d::CCString::getCString(v3); v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v5, CString); *(_DWORD *)(v2 + 960) = 0; for ( i = 1; i <= 59; ++i ) { v7 = cocos2d::CCString::createWithFormat("game_bg_%02d_001.png", i); v8 = cocos2d::CCString::getCString(v7); v10 = cocos2d::CCFileUtils::sharedFileUtils(v9); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 48LL))(v10, v8); } v2 = qword_1406C2ED8; } if ( !v2 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = qword_1406C2ED8; } v11 = v2; if ( !v2 ) { v20 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = qword_1406C2ED8; } *(_BYTE *)(v2 + 917) = *(_BYTE *)(v11 + 917) == 0; if ( !*(_BYTE *)(v2 + 926) ) { *(_BYTE *)(v2 + 926) = 1; v14 = 0; *(_QWORD *)&v14 = sub_14003AA10(0x50u); v15 = 73; v16 = 79; strcpy((char *)v14, "Low detail mode disables a lot of visual effects to increase performance."); v12 = sub_14003BDB0((__int64)v17, (__int64)&v14); v13 = FLAlertLayer::create(0, (int)"Low Detail Mode", v12, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003A830((__int64)&v14); v13->show(v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source