//
// GameManager::getFontFile from 0x7165dc to 0x71663c (96 bytes)
//
// 8 xrefs:
// > PlayLayer::setupHasCompleted @ 0x707cb0
// > TextGameObject::updateTextObject @ 0x77e690
// > LabelGameObject::createLabel @ 0x89a174
// > CustomizeObjectLayer::init @ 0x986734
// > CustomizeObjectLayer::init @ 0x986978
// > SelectFontLayer::updateFontLabel @ 0xa1f5d8
// > SecretLayer5::init @ 0xbc8928
// > ??> @ 0xc33d0
//
// 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 12:52:16 +0000
//
const char *__fastcall GameManager::getFontFile(GameManager *this, int a2)
{
unsigned int v2; // w19
cocos2d::CCString *v3; // x0
if ( a2 < 0 )
{
GameManager::loadFont((__int64)this, 0);
}
else
{
if ( a2 > 59 )
v2 = 59;
else
v2 = a2;
GameManager::loadFont((__int64)this, v2);
if ( v2 )
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"gjFont%02d.fnt",
(const char *)v2);
return (const char *)cocos2d::CCString::getCString(v3);
}
}
return "bigFont.fnt";
}