//
// cocos2d::CCDirector::setDefaultValues from 0x1001751a4 to 0x1001752f4 (336 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::init @ 0x100174fac
//
// 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 __fastcall cocos2d::CCDirector::setDefaultValues(cocos2d::CCDirector *a1)
{
cocos2d::CCConfiguration *v2; // x19
double v3; // d0
const char *CString; // x0
int v5; // w8
cocos2d::ccDirectorProjection v6; // w8
const char *v7; // x20
cocos2d::CCTexture2DPixelFormat v8; // w0
bool Bool; // w0
v2 = cocos2d::CCConfiguration::sharedConfiguration();
v3 = 1.0 / cocos2d::CCConfiguration::getNumber(v2, "cocos2d.x.fps", 60.0);
a1->m_dAnimationInterval = v3;
a1->m_dOldAnimationInterval = v3;
a1->m_bDisplayStats = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.display_fps", 0);
CString = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.gl.projection", "3d");
v5 = *(unsigned __int8 *)CString;
if ( v5 == 50 )
{
if ( CString[1] == 100 )
{
v6 = *((unsigned __int8 *)CString + 2);
if ( !CString[2] )
goto LABEL_10;
}
}
else if ( v5 == 51 && CString[1] == 100 && !CString[2] )
{
v6 = kCCDirectorProjection3D;
goto LABEL_10;
}
if ( strcmp(CString, "custom") )
goto LABEL_11;
v6 = kCCDirectorProjectionCustom;
LABEL_10:
a1->m_eProjection = v6;
LABEL_11:
v7 = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.texture.pixel_format_for_png", "rgba8888");
v8 = strcmp(v7, "rgba8888");
if ( v8 == kCCTexture2DPixelFormat_RGBA8888 )
{
LABEL_16:
cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v8);
goto LABEL_17;
}
if ( !strcmp(v7, "rgba4444") )
{
v8 = kCCTexture2DPixelFormat_RGBA4444;
goto LABEL_16;
}
if ( !strcmp(v7, "rgba5551") )
{
v8 = kCCTexture2DPixelFormat_RGB5A1;
goto LABEL_16;
}
LABEL_17:
Bool = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.texture.pvrv2_has_alpha_premultiplied", 0);
cocos2d::CCTexture2D::PVRImagesHavePremultipliedAlpha(Bool);
}