//
// cocos2d::CCDirector::setDefaultValues from 0x5c2b58 to 0x5c2c24 (204 bytes)
//
// 2 xrefs:
// > cocos2d::CCConfiguration::loadConfigFile @ 0x5ae12c
// > cocos2d::CCDirector::init @ 0x5c2c66
//
// 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
//
void cocos2d::CCDirector::setDefaultValues(cocos2d::CCDirector *a1)
{
cocos2d::CCConfiguration *v2; // r5
double Number; // r0
const char *CString; // r7
cocos2d::ccDirectorProjection v5; // r3
const char *v6; // r6
cocos2d::CCTexture2DPixelFormat v7; // r0
bool Bool; // r0
v2 = cocos2d::CCConfiguration::sharedConfiguration();
Number = cocos2d::CCConfiguration::getNumber(v2, "cocos2d.x.fps", 60.0);
a1->m_dAnimationInterval = 1.0 / Number;
a1->m_dOldAnimationInterval = 1.0 / Number;
a1->m_bDisplayStats = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.display_fps", 0);
CString = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.gl.projection", "3d");
if ( !strcmp(CString, "3d") )
{
v5 = kCCDirectorProjection3D;
LABEL_7:
a1->m_eProjection = v5;
goto LABEL_8;
}
if ( !strcmp(CString, "2d") )
{
a1->m_eProjection = kCCDirectorProjection2D;
goto LABEL_8;
}
if ( !strcmp(CString, "custom") )
{
v5 = kCCDirectorProjectionCustom;
goto LABEL_7;
}
LABEL_8:
v6 = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.texture.pixel_format_for_png", "rgba8888");
v7 = strcmp(v6, "rgba8888");
if ( v7 == kCCTexture2DPixelFormat_RGBA8888 )
{
LABEL_13:
cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v7);
goto LABEL_14;
}
if ( !strcmp(v6, "rgba4444") )
{
v7 = kCCTexture2DPixelFormat_RGBA4444;
goto LABEL_13;
}
if ( !strcmp(v6, "rgba5551") )
{
v7 = kCCTexture2DPixelFormat_RGB5A1;
goto LABEL_13;
}
LABEL_14:
Bool = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.texture.pvrv2_has_alpha_premultiplied", 0);
cocos2d::CCTexture2D::PVRImagesHavePremultipliedAlpha(Bool);
}