// // cocos2d::CCApplication::getCurrentLanguage from 0x100240d88 to 0x100240f4c (452 bytes) // // 2 xrefs: // > @ 0x100905ff8 // > @ 0x10092b4c8 // // This function is hookable on this platform (idp: arm, 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:01:24 +0000 // __int64 cocos2d::CCApplication::getCurrentLanguage() { id v0; // x19 v0 = -[NSDictionary objectForKey:]( +[NSLocale componentsFromLocaleIdentifier:]( &OBJC_CLASS___NSLocale, "componentsFromLocaleIdentifier:", objc_msgSend( -[NSUserDefaults objectForKey:]( +[NSUserDefaults standardUserDefaults](&OBJC_CLASS___NSUserDefaults, "standardUserDefaults"), "objectForKey:", CFSTR("AppleLanguages")), "objectAtIndex:", 0)), "objectForKey:", NSLocaleLanguageCode); if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("zh")) & 1) != 0 ) return 1; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("en")) & 1) != 0 ) return 0; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("fr")) & 1) != 0 ) return 2; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("it")) & 1) != 0 ) return 3; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("de")) & 1) != 0 ) return 4; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("es")) & 1) != 0 ) return 5; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("nl")) & 1) != 0 ) return 6; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("ru")) & 1) != 0 ) return 7; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("ko")) & 1) != 0 ) return 8; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("ja")) & 1) != 0 ) return 9; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("hu")) & 1) != 0 ) return 10; if ( ((unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("pt")) & 1) != 0 ) return 11; if ( (unsigned int)objc_msgSend(v0, "isEqualToString:", CFSTR("ar")) ) return 12; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source