// // SetupCameraModePopup::determineStartValues from 0x1405ac040 to 0x1405ac1fa (442 bytes) // // 4 xrefs: // > @ 0x1407ee0b8 // > @ 0x1408df0a4 // > @ 0x1408df0ec // > @ 0x14092d794 // // 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:34:40 +0000 // void __fastcall SetupCameraModePopup::determineStartValues(__int64 a1) { __int64 v2; // rcx cocos2d::CCArray *v3; // rdi char v4; // bp unsigned int v5; // esi char v6; // r14 float v7; // xmm7_4 float v8; // xmm8_4 struct cocos2d::CCObject *v9; // rax SetupTriggerPopup::determineStartValues(); if ( *(_QWORD *)(a1 + 680) ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(v3, *(struct cocos2d::CCObject **)(a1 + 680)); } else { v3 = *(cocos2d::CCArray **)(a1 + 688); } if ( v3 ) { if ( cocos2d::CCArray::count(v3) ) { v4 = 0; v5 = 0; v6 = 0; v7 = -99999.0; v8 = -99999.0; *(_WORD *)(a1 + 1060) = 257; *(_BYTE *)(a1 + 1062) = 1; if ( cocos2d::CCArray::count(v3) ) { do { v9 = cocos2d::CCArray::objectAtIndex(v3, v5); if ( !*((_BYTE *)v9 + 1764) ) *(_BYTE *)(a1 + 1060) = 0; if ( !*((_BYTE *)v9 + 1765) ) *(_BYTE *)(a1 + 1061) = 0; if ( !v4 ) { if ( v8 == -99999.0 ) { v8 = *((float *)v9 + 442); } else if ( v8 != *((float *)v9 + 442) ) { v8 = -99999.0; v4 = 1; } } if ( !v6 ) { if ( v7 == -99999.0 ) { v7 = *((float *)v9 + 443); } else if ( v7 != *((float *)v9 + 443) ) { v7 = -99999.0; v6 = 1; } } if ( *((_DWORD *)v9 + 259) != 2925 ) *(_BYTE *)(a1 + 1062) = 0; ++v5; } while ( v5 < cocos2d::CCArray::count(v3) ); if ( v8 != -99999.0 ) *(_DWORD *)(a1 + 1032) = (int)v8; if ( v7 != -99999.0 ) *(float *)(a1 + 1056) = v7; } } } if ( !*(_BYTE *)(a1 + 1061) ) { *(_DWORD *)(a1 + 1032) = 10; *(_DWORD *)(a1 + 1056) = 1056964608; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source