//
// SelectFontLayer2::loadPreviewSheet from 0x1009707a0 to 0x100970822 (130 bytes)
//
// 1 xrefs:
// > SelectFontLayer2::init @ 0x100970610
//
// This function is hookable on this platform (idp: pc, 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 12:38:52 +0000
//
void __fastcall SelectFontLayer2::loadPreviewSheet(__int64 a1, double a2)
{
__int64 v2; // rax
char v3; // al
__int64 v4; // rax
_BYTE v5[8]; // [rsp+0h] [rbp-20h] BYREF
__int64 v6; // [rsp+8h] [rbp-18h]
void *__p; // [rsp+10h] [rbp-10h]
if ( !*(_BYTE *)(a1 + 688) )
{
v2 = cocos2d::CCFileUtils::sharedFileUtils();
(*(void (__fastcall **)(_BYTE *, __int64, const char *, _QWORD))(*(_QWORD *)v2 + 48LL))(
v5,
v2,
"GJ_FontSheet.png",
0);
v3 = v5[0] & 1;
if ( (v5[0] & 1) != 0 )
{
if ( !v6 )
{
LABEL_7:
if ( v3 )
operator delete(__p);
return;
}
}
else if ( !(v5[0] >> 1) )
{
goto LABEL_7;
}
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile_2(v4, "GJ_FontSheet.plist", a2);
*(_BYTE *)(a1 + 688) = 1;
v3 = v5[0] & 1;
goto LABEL_7;
}
}