//
// GameManager::getBGTexture from 0x414ba4 to 0x414bce (42 bytes)
//
// 5 xrefs:
// > LoadingLayer::init @ 0x3fb5ea
// > MenuGameLayer::init @ 0x492f7e
// > GJBaseGameLayer::createBackground @ 0x58bc6c
// > GauntletLayer::init @ 0x60ed34
// > LevelAreaLayer::init @ 0x6a4b50
//
// 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:47:39 +0000
//
int __fastcall GameManager::getBGTexture(GameManager *this, const char *a2)
{
const char *v2; // r4
cocos2d::CCString *v3; // r0
if ( (int)a2 <= 0 )
{
v2 = (_BYTE *)(&dword_0 + 1);
}
else
{
if ( (int)a2 >= 59 )
a2 = (_BYTE *)(&dword_38 + 3);
v2 = a2;
}
GameManager::loadBackground((int)this, v2);
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v2);
return cocos2d::CCString::getCString(v3);
}