// // cocos2d::CCFileUtils::removeSearchPath from 0x1001520f8 to 0x100152244 (332 bytes) // // 2 xrefs: // > @ 0x10079a458 // > @ 0x1007c7d28 // // 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 // void __fastcall cocos2d::CCFileUtils::removeSearchPath(cocos2d::CCFileUtils *a1, const char *a2) { std::string::size_type size; // x9 std::string *p_p; // x8 __int64 v5; // x0 cocos2d::CCFileUtils_vtbl *v6; // x1 cocos2d::CCFileUtils_vtbl *v7; // x20 cocos2d::CCFileUtils_vtbl *v8; // x21 int writeToFile_high; // w8 std::string v10; // [xsp+8h] [xbp-68h] BYREF std::string __p; // [xsp+20h] [xbp-50h] BYREF std::string v12; // [xsp+38h] [xbp-38h] BYREF memset(&v12, 0, sizeof(v12)); sub_100009900(&__p, (char *)a2); if ( (((__int64 (__fastcall *)(cocos2d::CCFileUtils *, std::string *))a1->loadFilenameLookupDictionaryFromFile)( a1, &__p) & 1) == 0 ) std::string::operator=(&v12, (const std::string *)&a1[8]); sub_100151EF8( (const void **)&v12.__r_.__value_.__l.__data_, (const void **)&__p.__r_.__value_.__l.__data_, (__int64)&v10); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p = v10; if ( (SHIBYTE(v10.__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 *)&v10.__r_.__value_.__s + 23) ) goto LABEL_13; size = SHIBYTE(v10.__r_.__value_.__r.__words[2]); } p_p = &__p; if ( (v10.__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: v5 = sub_100152704(a1[5].__vftable, a1[6].__vftable, &__p, &v10); sub_100152794(&v10, v5 + 24, a1[6].__vftable); v7 = v6; v8 = a1[6].__vftable; while ( v8 != v7 ) { writeToFile_high = SHIBYTE(v8[-1].writeToFile); v8 = (cocos2d::CCFileUtils_vtbl *)((char *)v8 - 24); if ( writeToFile_high < 0 ) operator delete(v8->getClassTypeInfo); } a1[6].__vftable = v7; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source