// // cocos2d::CCApplication::getCurrentLanguage from 0x7eac68 to 0x7ead84 (284 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:58 +0000 // int __fastcall cocos2d::CCApplication::getCurrentLanguage(cocos2d::CCApplication *this, int a2, char *a3, int a4) { char *v4; // r4 int v5; // r4 _DWORD v7[2]; // [sp+0h] [bp-10h] BYREF char *v8; // [sp+8h] [bp-8h] int v9; // [sp+Ch] [bp-4h] v7[0] = this; v7[1] = a2; v8 = a3; v9 = a4; getCurrentLanguageJNI(); if ( (v7[0] & 1) != 0 ) v4 = v8; else v4 = (char *)v7 + 1; if ( !strcmp("zh", v4) ) { v5 = 1; } else if ( !strcmp("en", v4) ) { v5 = 0; } else if ( !strcmp("fr", v4) ) { v5 = 2; } else if ( !strcmp("it", v4) ) { v5 = 3; } else if ( !strcmp("de", v4) ) { v5 = 4; } else if ( !strcmp("es", v4) ) { v5 = 5; } else if ( !strcmp("nl", v4) ) { v5 = 6; } else if ( !strcmp("ru", v4) ) { v5 = 7; } else if ( !strcmp("ko", v4) ) { v5 = 8; } else if ( !strcmp("ja", v4) ) { v5 = 9; } else if ( !strcmp("hu", v4) ) { v5 = 10; } else if ( !strcmp("pt", v4) ) { v5 = 11; } else if ( !strcmp("ar", v4) ) { v5 = 12; } else { v5 = 0; } if ( (v7[0] & 1) != 0 ) operator delete(v8); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source