; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800c2ca0 mov [rsp+arg_8], rsi ; +0x5, 0x1800c2ca5 push rdi ; +0xa, 0x1800c2caa sub rsp, 20h ; +0xb, 0x1800c2cab mov rbx, rcx ; +0xf, 0x1800c2caf call ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0x12, 0x1800c2cb2 movsd xmm2, cs:dbl_180106ED8; double ; +0x17, 0x1800c2cb7 lea rdx, aCocos2dXFps; "cocos2d.x.fps" ; +0x1f, 0x1800c2cbf mov rcx, rax; this ; +0x26, 0x1800c2cc6 mov rsi, rax ; +0x29, 0x1800c2cc9 call ?getNumber@CCConfiguration@cocos2d@@QEBANPEBDN@Z; cocos2d::CCConfiguration::getNumber(char const *,double) ; +0x2c, 0x1800c2ccc movsd xmm1, cs:depth ; +0x31, 0x1800c2cd1 lea rdx, aCocos2dXDispla; "cocos2d.x.display_fps" ; +0x39, 0x1800c2cd9 divsd xmm1, xmm0 ; +0x40, 0x1800c2ce0 xor r8d, r8d; bool ; +0x44, 0x1800c2ce4 mov rcx, rsi; this ; +0x47, 0x1800c2ce7 unpcklpd xmm1, xmm1 ; +0x4a, 0x1800c2cea movups xmmword ptr [rbx+0C8h], xmm1 ; +0x4e, 0x1800c2cee call ?getBool@CCConfiguration@cocos2d@@QEBA_NPEBD_N@Z; cocos2d::CCConfiguration::getBool(char const *,bool) ; +0x55, 0x1800c2cf5 lea r8, a3d; "3d" ; +0x5a, 0x1800c2cfa mov [rbx+0D9h], al ; +0x61, 0x1800c2d01 lea rdx, aCocos2dXGlProj; "cocos2d.x.gl.projection" ; +0x67, 0x1800c2d07 mov rcx, rsi; this ; +0x6e, 0x1800c2d0e call ?getCString@CCConfiguration@cocos2d@@QEBAPEBDPEBD0@Z; cocos2d::CCConfiguration::getCString(char const *,char const *) ; +0x71, 0x1800c2d11 lea rdx, a3d; "3d" ; +0x76, 0x1800c2d16 mov rcx, rax; Str1 ; +0x7d, 0x1800c2d1d mov rdi, rax ; +0x80, 0x1800c2d20 call strcmp ; +0x83, 0x1800c2d23 test eax, eax ; +0x88, 0x1800c2d28 jnz short loc_1800C2D38 ; +0x8a, 0x1800c2d2a mov dword ptr [rbx+13Ch], 1 ; +0x8c, 0x1800c2d2c jmp short loc_1800C2D70 ; +0x96, 0x1800c2d36 lea rdx, a2d; "2d" ; +0x98, 0x1800c2d38 mov rcx, rdi; Str1 ; +0x9f, 0x1800c2d3f call strcmp ; +0xa2, 0x1800c2d42 test eax, eax ; +0xa7, 0x1800c2d47 jnz short loc_1800C2D53 ; +0xa9, 0x1800c2d49 mov [rbx+13Ch], eax ; +0xab, 0x1800c2d4b jmp short loc_1800C2D70 ; +0xb1, 0x1800c2d51 lea rdx, aCustom; "custom" ; +0xb3, 0x1800c2d53 mov rcx, rdi; Str1 ; +0xba, 0x1800c2d5a call strcmp ; +0xbd, 0x1800c2d5d test eax, eax ; +0xc2, 0x1800c2d62 jnz short loc_1800C2D70 ; +0xc4, 0x1800c2d64 mov dword ptr [rbx+13Ch], 2 ; +0xc6, 0x1800c2d66 lea r8, aRgba8888_0; "rgba8888" ; +0xd0, 0x1800c2d70 mov rcx, rsi; this ; +0xd7, 0x1800c2d77 lea rdx, aCocos2dXTextur; "cocos2d.x.texture.pixel_format_for_png" ; +0xda, 0x1800c2d7a call ?getCString@CCConfiguration@cocos2d@@QEBAPEBDPEBD0@Z; cocos2d::CCConfiguration::getCString(char const *,char const *) ; +0xe1, 0x1800c2d81 lea rdx, aRgba8888_0; "rgba8888" ; +0xe6, 0x1800c2d86 mov rcx, rax; Str1 ; +0xed, 0x1800c2d8d mov rbx, rax ; +0xf0, 0x1800c2d90 call strcmp ; +0xf3, 0x1800c2d93 test eax, eax ; +0xf8, 0x1800c2d98 jnz short loc_1800C2DA0 ; +0xfa, 0x1800c2d9a xor ecx, ecx ; +0xfc, 0x1800c2d9c jmp short loc_1800C2DD2 ; +0xfe, 0x1800c2d9e lea rdx, aRgba4444_0; "rgba4444" ; +0x100, 0x1800c2da0 mov rcx, rbx; Str1 ; +0x107, 0x1800c2da7 call strcmp ; +0x10a, 0x1800c2daa test eax, eax ; +0x10f, 0x1800c2daf jnz short loc_1800C2DBA ; +0x111, 0x1800c2db1 mov ecx, 6 ; +0x113, 0x1800c2db3 jmp short loc_1800C2DD2 ; +0x118, 0x1800c2db8 lea rdx, aRgba5551; "rgba5551" ; +0x11a, 0x1800c2dba mov rcx, rbx; Str1 ; +0x121, 0x1800c2dc1 call strcmp ; +0x124, 0x1800c2dc4 test eax, eax ; +0x129, 0x1800c2dc9 jnz short loc_1800C2DD7 ; +0x12b, 0x1800c2dcb mov ecx, 7 ; +0x12d, 0x1800c2dcd call ?setDefaultAlphaPixelFormat@CCTexture2D@cocos2d@@SAXW4CCTexture2DPixelFormat@2@@Z; cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(cocos2d::CCTexture2DPixelFormat) ; +0x132, 0x1800c2dd2 xor r8d, r8d; bool ; +0x137, 0x1800c2dd7 lea rdx, aCocos2dXTextur_0; "cocos2d.x.texture.pvrv2_has_alpha_premu"... ; +0x13a, 0x1800c2dda mov rcx, rsi; this ; +0x141, 0x1800c2de1 call ?getBool@CCConfiguration@cocos2d@@QEBA_NPEBD_N@Z; cocos2d::CCConfiguration::getBool(char const *,bool) ; +0x144, 0x1800c2de4 movzx ecx, al; bool ; +0x149, 0x1800c2de9 mov rbx, [rsp+28h+arg_0] ; +0x14c, 0x1800c2dec mov rsi, [rsp+28h+arg_8] ; +0x151, 0x1800c2df1 add rsp, 20h ; +0x156, 0x1800c2df6 pop rdi ; +0x15a, 0x1800c2dfa jmp ?PVRImagesHavePremultipliedAlpha@CCTexture2D@cocos2d@@SAX_N@Z; cocos2d::CCTexture2D::PVRImagesHavePremultipliedAlpha(bool) ; +0x15b, 0x1800c2dfb