// // GameManager::unloadIcon from 0x1003b4aa0 to 0x1003b4c98 (504 bytes) // // 2 xrefs: // > GameManager::loadIcon @ 0x1003b49c4 // > GameManager::unloadIcons @ 0x1003b4e60 // // 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:03:56 +0000 // _DWORD *__fastcall GameManager::unloadIcon(_DWORD *result, __int64 a2, signed int a3, int a4) { _DWORD *v6; // x19 _QWORD *v7; // x0 void *v8; // x0 std::string *p_p; // x1 _DWORD *v10; // x0 std::string __p; // [xsp+0h] [xbp-60h] BYREF std::string v12; // [xsp+18h] [xbp-48h] BYREF int v13; // [xsp+34h] [xbp-2Ch] BYREF int v14; // [xsp+38h] [xbp-28h] BYREF int v15; // [xsp+3Ch] [xbp-24h] BYREF v14 = a4; v15 = a3; if ( (int)a2 >= 1 ) { v6 = result; v13 = a2 + *(_DWORD *)(*((_QWORD *)result + 154) + 4LL * a3) - 1; v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v13; v7 = sub_1001E71D0((__int64)(result + 290), &v13, (__int64)&unk_10076DF2D, (unsigned int **)&v12); --*((_DWORD *)v7 + 8); if ( (_DWORD)a2 == 1 ) { v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v13; if ( *((int *)sub_1001E71D0((__int64)(v6 + 290), &v13, (__int64)&unk_10076DF2D, (unsigned int **)&v12) + 8) <= 0 ) { v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v13; *((_DWORD *)sub_1001E71D0((__int64)(v6 + 290), &v13, (__int64)&unk_10076DF2D, (unsigned int **)&v12) + 8) = 1; } } v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v13; if ( *((int *)sub_1001E71D0((__int64)(v6 + 290), &v13, (__int64)&unk_10076DF2D, (unsigned int **)&v12) + 8) <= 0 ) { GameManager::sheetNameForIcon(a2, a3, &v12); if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_); else __p = v12; std::string::append(&__p, ".png"); v8 = cocos2d::CCTextureCache::sharedTextureCache(); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; cocos2d::CCTextureCache::removeTextureForKey((__int64)v8, (__int64)p_p); 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_); } v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v14; v10 = sub_10018E25C((__int64)(v6 + 296), &v14, (__int64)&unk_10076DF2D, &v12); sub_10005484C((_QWORD *)v10 + 5, &v15); v12.__r_.__value_.__r.__words[0] = (std::string::size_type)&v14; result = sub_10018E25C((__int64)(v6 + 296), &v14, (__int64)&unk_10076DF2D, &v12); if ( !*((_QWORD *)result + 7) ) return (_DWORD *)sub_1003BC1E4(v6 + 296, &v14); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source