//
// SelectFontLayer2::unloadPreviewSheet from 0x7a202c to 0x7a2056 (42 bytes)
//
// 1 xrefs:
// > SelectFontLayer2::~SelectFontLayer2 @ 0x7a20b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:54 +0000
//
cocos2d::CCSpriteFrameCache *__fastcall SelectFontLayer2::unloadPreviewSheet(cocos2d::CCSpriteFrameCache *this)
{
cocos2d::CCSpriteFrameCache *v1; // r4
cocos2d::CCSpriteFrameCache *v2; // r0
cocos2d::CCTextureCache *v3; // r0
cocos2d::CCTextureCache *v4; // r0
v1 = this;
if ( *((_BYTE *)this + 532) )
{
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(this);
v3 = (cocos2d::CCTextureCache *)cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v2, "GJ_FontSheet.plist");
v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v3);
this = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::removeTextureForKey(v4, "GJ_FontSheet.png");
*((_BYTE *)v1 + 532) = 0;
}
return this;
}