//
// cocos2d::CCDirector::setDefaultValues from 0x1800c2ca0 to 0x1800c2e00 (352 bytes)
//
// 4 xrefs:
// > cocos2d::CCConfiguration::loadConfigFile @ 0x1800c129b
// > cocos2d::CCDirector::init @ 0x1800c1fbd
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c35b8
//
// This function is hookable on this platform (idp: pc, 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 11:22:26 +0000
//
void __fastcall cocos2d::CCDirector::setDefaultValues(cocos2d::CCDirector *this)
{
cocos2d::CCConfiguration *v2; // rsi
__m128d v3; // xmm1
const char *CString; // rdi
const char *v5; // rbx
int v6; // ecx
char Bool; // al
v2 = cocos2d::CCConfiguration::sharedConfiguration();
v3 = (__m128d)0x3FF0000000000000uLL;
v3.m128d_f64[0] = 1.0 / cocos2d::CCConfiguration::getNumber(v2, "cocos2d.x.fps", 60.0);
*(__m128d *)((char *)this + 200) = _mm_unpacklo_pd(v3, v3);
*((_BYTE *)this + 217) = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.display_fps", 0);
CString = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.gl.projection", "3d");
if ( !strcmp(CString, "3d") )
{
*((_DWORD *)this + 79) = 1;
}
else if ( !strcmp(CString, "2d") )
{
*((_DWORD *)this + 79) = 0;
}
else if ( !strcmp(CString, "custom") )
{
*((_DWORD *)this + 79) = 2;
}
v5 = cocos2d::CCConfiguration::getCString(v2, "cocos2d.x.texture.pixel_format_for_png", "rgba8888");
if ( !strcmp(v5, "rgba8888") )
{
v6 = 0;
LABEL_13:
cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v6);
goto LABEL_14;
}
if ( !strcmp(v5, "rgba4444") )
{
v6 = 6;
goto LABEL_13;
}
if ( !strcmp(v5, "rgba5551") )
{
v6 = 7;
goto LABEL_13;
}
LABEL_14:
Bool = cocos2d::CCConfiguration::getBool(v2, "cocos2d.x.texture.pvrv2_has_alpha_premultiplied", 0);
cocos2d::CCTexture2D::PVRImagesHavePremultipliedAlpha(Bool);
}