// // cocos2d::extension::AssetsManager::setSearchPath from 0x180002090 to 0x1800021b1 (289 bytes) // // 4 xrefs: // > cocos2d::extension::AssetsManager::checkUpdate @ 0x180001999 // > sub_180002B20 @ 0x180002c8c // > @ 0x180032408 // > @ 0x18004b0fc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:15:34 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::extension::AssetsManager::setSearchPath(cocos2d::extension::AssetsManager *this) { __int64 v2; // rax __int64 v3; // rax _OWORD *v4; // rsi _OWORD *v5; // rdi char *v6; // rdx _OWORD *v7; // rbx __int64 v8; // rax _OWORD *v9; // [rsp+20h] [rbp-48h] BYREF _OWORD *v10; // [rsp+28h] [rbp-40h] _OWORD *v11; // [rsp+30h] [rbp-38h] _QWORD *v12; // [rsp+38h] [rbp-30h] _BYTE v13[40]; // [rsp+40h] [rbp-28h] BYREF v2 = cocos2d::CCFileUtils::sharedFileUtils(); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2); sub_180003240(&v9, v3); v4 = v9; v5 = v10; if ( v10 == v11 ) { sub_180002EB0(&v9, v9, (char *)this + 8); } else { v6 = (char *)this + 8; if ( v9 == v10 ) { sub_1800039B0(v10, v6); v10 += 2; } else { v12 = &v9; sub_1800039B0(v13, v6); v7 = v5 - 2; *v5 = *(v5 - 2); v5[1] = *(v5 - 1); *((_QWORD *)v7 + 2) = 0; *((_QWORD *)v7 + 3) = 15; *(_BYTE *)v7 = 0; v10 += 2; if ( v5 - 2 != v4 ) { do { v7 -= 2; v5 -= 2; sub_180003300(v5, v7); } while ( v7 != v4 ); } sub_180003300(v4, v13); sub_180003700(v13); } } v8 = cocos2d::CCFileUtils::sharedFileUtils(); (*(void (__fastcall **)(__int64, _OWORD **))(*(_QWORD *)v8 + 104LL))(v8, &v9); sub_180003150(&v9); }