// // cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile from 0x1004635dc to 0x1004637ec (528 bytes) // // 22 xrefs: // > SecretLayer5::init @ 0x10007c7c8 // > SecretLayer5::init @ 0x10007c7ec // > GJShopLayer::init @ 0x1001c9254 // > GauntletSelectLayer::init @ 0x1002541b8 // > LoadingLayer::init @ 0x10026e5e0 // > LoadingLayer::loadAssets @ 0x10026ed90 // > LoadingLayer::loadAssets @ 0x10026ee78 // > LoadingLayer::loadAssets @ 0x10026ee9c // > LoadingLayer::loadAssets @ 0x10026eee8 // > LoadingLayer::loadAssets @ 0x10026f040 // > LoadingLayer::loadAssets @ 0x10026f14c // > LoadingLayer::loadAssets @ 0x10026f17c // > sub_10031642C @ 0x10031648c // > SecretRewardsLayer::init @ 0x1003831ac // > SecretLayer2::init @ 0x1003a64c8 // > SecretLayer3::init @ 0x1003aaaec // > GameManager::loadIcon @ 0x1003b4918 // > sub_1003B502C @ 0x1003b50f4 // > LevelAreaLayer::init @ 0x1003e238c // > LevelAreaInnerLayer::init @ 0x1003e3f30 // > SecretLayer4::init @ 0x1003f3760 // > GJPathsLayer::init @ 0x10045ed08 // // 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:05:31 +0000 // void __fastcall cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(__int64 a1, char *a2) { __int64 v4; // x21 __int64 v5; // x0 __int64 v6; // x21 __int64 v7; // x22 __int64 v8; // x0 __int64 v9; // x21 __int64 v10; // x0 __int64 v11; // x22 __int64 v12; // x0 const std::string::value_type *CString; // x0 std::string::size_type size; // x8 std::string *p_p; // x9 std::string::size_type v16; // x1 char *v17; // x8 int v18; // w9 std::string *v19; // x0 std::string *v20; // x0 void *v21; // x0 std::string *v22; // x1 _DWORD *v23; // x2 __int64 v24; // x20 void *v25[2]; // [xsp+0h] [xbp-50h] BYREF char v26; // [xsp+17h] [xbp-39h] std::string __p; // [xsp+18h] [xbp-38h] BYREF v4 = *(_QWORD *)(a1 + 72); sub_100009900(&__p, a2); v5 = sub_1000D9514(v4, (const void **)&__p.__r_.__value_.__l.__data_); v6 = v5; v7 = *(_QWORD *)(a1 + 72) + 8LL; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( v7 != v6 ) return; v8 = CCContentManager::sharedManager(v5); v9 = CCContentManager::addDict(v8, a2, 0); sub_100009900(&__p, ""); sub_100009900(v25, "metadata"); v10 = cocos2d::CCDictionary::objectForKey(v9, v25); v11 = v10; if ( (v26 & 0x80000000) == 0 ) { if ( !v10 ) goto LABEL_10; LABEL_8: sub_100009900(v25, "textureFileName"); v12 = cocos2d::CCDictionary::valueForKey(v11, v25); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v12); std::string::assign(&__p, CString); if ( v26 < 0 ) operator delete(v25[0]); goto LABEL_10; } operator delete(v25[0]); if ( v11 ) goto LABEL_8; LABEL_10: size = HIBYTE(__p.__r_.__value_.__r.__words[2]); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __p.__r_.__value_.__l.__size_; if ( !size ) { std::string::assign(&__p, a2); p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v16 = SHIBYTE(__p.__r_.__value_.__r.__words[2]); else v16 = __p.__r_.__value_.__l.__size_; v17 = (char *)&p_p[-1].__r_.__value_.__r.__words[2] + 7; while ( v16 ) { v18 = (unsigned __int8)v17[v16--]; if ( v18 == 46 ) goto LABEL_23; } v16 = -1; LABEL_23: v19 = std::string::erase(&__p, v16, 0xFFFFFFFFFFFFFFFFLL); std::string::operator=(&__p, v19); v20 = std::string::append(&__p, ".png"); std::string::operator=(&__p, v20); } v21 = cocos2d::CCTextureCache::sharedTextureCache(); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v22 = &__p; else v22 = (std::string *)__p.__r_.__value_.__r.__words[0]; v23 = cocos2d::CCTextureCache::addImage((__int64)v21, (char *)v22); if ( v23 ) { cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary(a1, v9, (__int64)v23); v24 = *(_QWORD *)(a1 + 72); sub_100009900(v25, a2); sub_100463B7C(v24, v25, v25); if ( v26 < 0 ) operator delete(v25[0]); } if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source