//
// cocos2d::extension::AssetsManager::setStoragePath from 0x180002590 to 0x1800025f7 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004b120
//
// 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
//
void __fastcall cocos2d::extension::AssetsManager::setStoragePath(cocos2d::extension::AssetsManager *this, char *a2)
{
size_t v3; // r8
__int64 v4; // rcx
char *v5; // rax
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_1800035E0((char *)this + 8, a2, v3);
v4 = *((_QWORD *)this + 3);
if ( v4 )
{
v5 = (char *)this + 8;
if ( *((_QWORD *)this + 4) > 0xFu )
v5 = *((char **)this + 1);
if ( v5[v4 - 1] != 47 )
sub_1800033A0((char *)this + 8, &word_180025890, 1u);
}
}