// // cocos2d::CCDevice::getDPI from 0x180074d10 to 0x180074da8 (152 bytes) // // 4 xrefs: // > @ 0x18013b290 // > @ 0x18013b2a0 // > @ 0x1801438a8 // > @ 0x1801b45cc // // 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 // __int64 __fastcall cocos2d::CCDevice::getDPI() { __int64 result; // rax HDC DC; // rsi int DeviceCaps; // edi int v3; // ebx result = (unsigned int)dword_1801A2BB0; if ( dword_1801A2BB0 == -1 ) { DC = GetDC(nullptr); DeviceCaps = GetDeviceCaps(DC, 8); v3 = GetDeviceCaps(DC, 4); ReleaseDC(nullptr, DC); dword_1801A2BB0 = (int)(float)((float)((float)((float)DeviceCaps * 254.0) / (float)v3) / 10.0); return (unsigned int)dword_1801A2BB0; } return result; }