// // cocos2d::CCFileUtils::addSearchPath from 0x1001d0b2c to 0x1001d0c2c (256 bytes) // // 2 xrefs: // > @ 0x1008ef898 // > @ 0x100920360 // // This function is hookable on this platform (idp: arm, 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 11:00:22 +0000 // void __fastcall cocos2d::CCFileUtils::addSearchPath(__int64 a1, char *a2) { std::string::size_type size; // x9 std::string *p_p; // x8 std::string v5; // [xsp+8h] [xbp-58h] BYREF std::string __p; // [xsp+20h] [xbp-40h] BYREF std::string v7; // [xsp+38h] [xbp-28h] BYREF memset(&v7, 0, sizeof(v7)); sub_100009900(&__p, a2); if ( ((*(__int64 (__fastcall **)(__int64, std::string *))(*(_QWORD *)a1 + 168LL))(a1, &__p) & 1) == 0 ) std::string::operator=(&v7, (const std::string *)(a1 + 64)); sub_10011E060( (const void **)&v7.__r_.__value_.__l.__data_, (const void **)&__p.__r_.__value_.__l.__data_, (__int64)&v5); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p = v5; if ( (SHIBYTE(v5.__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 ) { size = __p.__r_.__value_.__l.__size_; if ( !__p.__r_.__value_.__l.__size_ ) goto LABEL_13; } else { if ( !*((_BYTE *)&v5.__r_.__value_.__s + 23) ) goto LABEL_13; size = SHIBYTE(v5.__r_.__value_.__r.__words[2]); } p_p = &__p; if ( (v5.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; if ( p_p->__r_.__value_.__s.__data_[size - 1] != 47 ) std::string::append(&__p, "/"); LABEL_13: sub_100017C70(a1 + 40); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( SHIBYTE(v7.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v7.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source