; ; cocos2d::CCDirector::setDefaultValues from 0x1800bf450 to 0x1800bf5b5 (357 bytes) ; ; 4 xrefs: ; > cocos2d::CCConfiguration::loadConfigFile @ 0x1800bdaad ; > cocos2d::CCDirector::init @ 0x1800be7b2 ; > @ 0x1801438a8 ; > @ 0x1801b92f4 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800bf450 push rdi ; +0x5, 0x1800bf455 sub rsp, 20h ; +0x6, 0x1800bf456 mov rbx, rcx ; +0xa, 0x1800bf45a call ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0xd, 0x1800bf45d movsd xmm2, cs:dbl_180107590; double ; +0x12, 0x1800bf462 lea rdx, aCocos2dXFps; "cocos2d.x.fps" ; +0x1a, 0x1800bf46a mov rcx, rax; this ; +0x21, 0x1800bf471 mov rdi, rax ; +0x24, 0x1800bf474 call ?getNumber@CCConfiguration@cocos2d@@QEBANPEBDN@Z; cocos2d::CCConfiguration::getNumber(char const *,double) ; +0x27, 0x1800bf477 movsd xmm1, cs:depth ; +0x2c, 0x1800bf47c lea rdx, aCocos2dXDispla; "cocos2d.x.display_fps" ; +0x34, 0x1800bf484 divsd xmm1, xmm0 ; +0x3b, 0x1800bf48b xor r8d, r8d; bool ; +0x3f, 0x1800bf48f mov rcx, rdi; this ; +0x42, 0x1800bf492 unpcklpd xmm1, xmm1 ; +0x45, 0x1800bf495 movups xmmword ptr [rbx+0C0h], xmm1 ; +0x49, 0x1800bf499 call ?getBool@CCConfiguration@cocos2d@@QEBA_NPEBD_N@Z; cocos2d::CCConfiguration::getBool(char const *,bool) ; +0x50, 0x1800bf4a0 lea r8, a3d; "3d" ; +0x55, 0x1800bf4a5 mov [rbx+0D1h], al ; +0x5c, 0x1800bf4ac lea rdx, aCocos2dXGlProj; "cocos2d.x.gl.projection" ; +0x62, 0x1800bf4b2 mov rcx, rdi; this ; +0x69, 0x1800bf4b9 call ?getCString@CCConfiguration@cocos2d@@QEBAPEBDPEBD0@Z; cocos2d::CCConfiguration::getCString(char const *,char const *) ; +0x6c, 0x1800bf4bc mov rdx, rax ; +0x71, 0x1800bf4c1 cmp byte ptr [rax], 33h ; '3' ; +0x74, 0x1800bf4c4 jnz short loc_1800BF4E1 ; +0x77, 0x1800bf4c7 cmp byte ptr [rax+1], 64h ; 'd' ; +0x79, 0x1800bf4c9 jnz short loc_1800BF4E1 ; +0x7d, 0x1800bf4cd cmp byte ptr [rax+2], 0 ; +0x7f, 0x1800bf4cf jnz short loc_1800BF4E1 ; +0x83, 0x1800bf4d3 mov dword ptr [rbx+134h], 1 ; +0x85, 0x1800bf4d5 jmp short loc_1800BF52E ; +0x8f, 0x1800bf4df cmp byte ptr [rax], 32h ; '2' ; +0x91, 0x1800bf4e1 jnz short loc_1800BF4FC ; +0x94, 0x1800bf4e4 cmp byte ptr [rax+1], 64h ; 'd' ; +0x96, 0x1800bf4e6 jnz short loc_1800BF4FC ; +0x9a, 0x1800bf4ea cmp byte ptr [rax+2], 0 ; +0x9c, 0x1800bf4ec jnz short loc_1800BF4FC ; +0xa0, 0x1800bf4f0 xor ecx, ecx ; +0xa2, 0x1800bf4f2 mov [rbx+134h], ecx ; +0xa4, 0x1800bf4f4 jmp short loc_1800BF52E ; +0xaa, 0x1800bf4fa xor ecx, ecx ; +0xac, 0x1800bf4fc lea r8, aCustom; "custom" ; +0xae, 0x1800bf4fe nop word ptr [rax+rax+00000000h] ; +0xb5, 0x1800bf505 movzx eax, byte ptr [rdx+rcx] ; +0xc0, 0x1800bf510 inc rcx ; +0xc4, 0x1800bf514 cmp al, [r8+rcx-1] ; +0xc7, 0x1800bf517 jnz short loc_1800BF52E ; +0xcc, 0x1800bf51c cmp rcx, 7 ; +0xce, 0x1800bf51e jnz short loc_1800BF510 ; +0xd2, 0x1800bf522 mov dword ptr [rbx+134h], 2 ; +0xd4, 0x1800bf524 lea r8, aRgba8888_0; "rgba8888" ; +0xde, 0x1800bf52e mov rcx, rdi; this ; +0xe5, 0x1800bf535 lea rdx, aCocos2dXTextur; "cocos2d.x.texture.pixel_format_for_png" ; +0xe8, 0x1800bf538 call ?getCString@CCConfiguration@cocos2d@@QEBAPEBDPEBD0@Z; cocos2d::CCConfiguration::getCString(char const *,char const *) ; +0xef, 0x1800bf53f lea rdx, aRgba8888_0; "rgba8888" ; +0xf4, 0x1800bf544 mov rcx, rax; Str1 ; +0xfb, 0x1800bf54b mov rbx, rax ; +0xfe, 0x1800bf54e call strcmp ; +0x101, 0x1800bf551 test eax, eax ; +0x106, 0x1800bf556 jnz short loc_1800BF55E ; +0x108, 0x1800bf558 xor ecx, ecx ; +0x10a, 0x1800bf55a jmp short loc_1800BF58C ; +0x10c, 0x1800bf55c lea rdx, aRgba4444_0; "rgba4444" ; +0x10e, 0x1800bf55e mov rcx, rbx; Str1 ; +0x115, 0x1800bf565 call strcmp ; +0x118, 0x1800bf568 test eax, eax ; +0x11d, 0x1800bf56d jnz short loc_1800BF576 ; +0x11f, 0x1800bf56f lea ecx, [rax+6] ; +0x121, 0x1800bf571 jmp short loc_1800BF58C ; +0x124, 0x1800bf574 lea rdx, aRgba5551; "rgba5551" ; +0x126, 0x1800bf576 mov rcx, rbx; Str1 ; +0x12d, 0x1800bf57d call strcmp ; +0x130, 0x1800bf580 test eax, eax ; +0x135, 0x1800bf585 jnz short loc_1800BF591 ; +0x137, 0x1800bf587 lea ecx, [rax+7] ; +0x139, 0x1800bf589 call ?setDefaultAlphaPixelFormat@CCTexture2D@cocos2d@@SAXW4CCTexture2DPixelFormat@2@@Z; cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(cocos2d::CCTexture2DPixelFormat) ; +0x13c, 0x1800bf58c xor r8d, r8d; bool ; +0x141, 0x1800bf591 lea rdx, aCocos2dXTextur_0; "cocos2d.x.texture.pvrv2_has_alpha_premu"... ; +0x144, 0x1800bf594 mov rcx, rdi; this ; +0x14b, 0x1800bf59b call ?getBool@CCConfiguration@cocos2d@@QEBA_NPEBD_N@Z; cocos2d::CCConfiguration::getBool(char const *,bool) ; +0x14e, 0x1800bf59e movzx ecx, al; bool ; +0x153, 0x1800bf5a3 mov rbx, [rsp+28h+arg_0] ; +0x156, 0x1800bf5a6 add rsp, 20h ; +0x15b, 0x1800bf5ab pop rdi ; +0x15f, 0x1800bf5af jmp ?PVRImagesHavePremultipliedAlpha@CCTexture2D@cocos2d@@SAX_N@Z; cocos2d::CCTexture2D::PVRImagesHavePremultipliedAlpha(bool) ; +0x160, 0x1800bf5b0