//
// GameManager::getBGTexture from 0x322bfc to 0x322c26 (42 bytes)
//
// 5 xrefs:
// > LoadingLayer::init @ 0x30c226
// > MenuGameLayer::init @ 0x3aa17e
// > GJBaseGameLayer::createBackground @ 0x46d0d0
// > GauntletLayer::init @ 0x4db0f2
// > LevelAreaLayer::init @ 0x56c91a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *GameManager::getBGTexture(GameManager *a1, int a2)
{
const char *v2; // r4
cocos2d::CCString *v3; // r0
if ( a2 <= 0 )
{
v2 = (_BYTE *)(&dword_0 + 1);
}
else
{
if ( a2 >= 59 )
a2 = 59;
v2 = (const char *)a2;
}
GameManager::loadBackground(a1, (int)v2);
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v2);
return cocos2d::CCString::getCString(v3);
}