// // cocos2d::CCApplication::getCurrentLanguage from 0xb0ab38 to 0xb0ad28 (496 bytes) // // 3 xrefs: // > @ 0x9b5f8 // > @ 0x11455c0 // > @ 0x1217f00 // // 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 // cocos2d::ccLanguageType cocos2d::CCApplication::getCurrentLanguage(cocos2d::CCApplication *a1) { cocos2d::ccLanguageType v1; // w21 char *v2; // x20 char *v3; // x0 unsigned int *v5; // x20 int v6; // w1 char *v7; // [xsp+40h] [xbp+40h] BYREF v1 = kLanguageChinese; getCurrentLanguageJNI((__int64 *)&v7); v2 = v7; if ( strcmp("zh", v7) ) { v1 = kLanguageEnglish; if ( strcmp("en", v2) ) { v1 = kLanguageFrench; if ( strcmp("fr", v2) ) { v1 = kLanguageItalian; if ( strcmp("it", v2) ) { v1 = kLanguageGerman; if ( strcmp("de", v2) ) { v1 = kLanguageSpanish; if ( strcmp("es", v2) ) { v1 = kLanguageDutch; if ( strcmp("nl", v2) ) { v1 = kLanguageRussian; if ( strcmp("ru", v2) ) { v1 = kLanguageKorean; if ( strcmp("ko", v2) ) { v1 = kLanguageJapanese; if ( strcmp("ja", v2) ) { v1 = kLanguageHungarian; if ( strcmp("hu", v2) ) { v1 = kLanguagePortuguese; if ( strcmp("pt", v2) ) { if ( !strcmp("ar", v2) ) v1 = kLanguageArabic; else v1 = kLanguageEnglish; } } } } } } } } } } } } v3 = v2 - 24; if ( v2 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v5 = (unsigned int *)(v2 - 8); do v6 = __ldaxr(v5); while ( __stlxr(v6 - 1, v5) ); } else { v6 = *((_DWORD *)v2 - 2); *((_DWORD *)v2 - 2) = v6 - 1; } if ( v6 <= 0 ) operator delete(v3); } return v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source