// // cocos2d::CCApplication::getCurrentLanguage from 0x100314c40 to 0x100314e68 (552 bytes) // // 2 xrefs: // > @ 0x100b1c840 // > @ 0x100b9adc8 // // 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 12:28:40 +0000 // __int64 cocos2d::CCApplication::getCurrentLanguage() { NSUserDefaults *v0; // rax id v1; // rax id v2; // rax NSDictionary *v3; // rax id v4; // rbx unsigned __int8 v5; // cl __int64 result; // rax unsigned __int8 v7; // cl unsigned __int8 v8; // cl unsigned __int8 v9; // cl unsigned __int8 v10; // cl unsigned __int8 v11; // cl unsigned __int8 v12; // cl unsigned __int8 v13; // cl unsigned __int8 v14; // cl unsigned __int8 v15; // cl unsigned __int8 v16; // cl unsigned __int8 v17; // cl bool v18; // zf v0 = +[NSUserDefaults standardUserDefaults](&OBJC_CLASS___NSUserDefaults, "standardUserDefaults"); v1 = -[NSUserDefaults objectForKey:](v0, "objectForKey:", CFSTR("AppleLanguages")); v2 = objc_msgSend(v1, "objectAtIndex:", 0); v3 = +[NSLocale componentsFromLocaleIdentifier:](&OBJC_CLASS___NSLocale, "componentsFromLocaleIdentifier:", v2); v4 = -[NSDictionary objectForKey:](v3, "objectForKey:", NSLocaleLanguageCode); v5 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("zh")); result = 1; if ( !v5 ) { v7 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("en")); result = 0; if ( !v7 ) { v8 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("fr")); result = 2; if ( !v8 ) { v9 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("it")); result = 3; if ( !v9 ) { v10 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("de")); result = 4; if ( !v10 ) { v11 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("es")); result = 5; if ( !v11 ) { v12 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("nl")); result = 6; if ( !v12 ) { v13 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("ru")); result = 7; if ( !v13 ) { v14 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("ko")); result = 8; if ( !v14 ) { v15 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("ja")); result = 9; if ( !v15 ) { v16 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("hu")); result = 10; if ( !v16 ) { v17 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("pt")); result = 11; if ( !v17 ) { v18 = (unsigned __int8)objc_msgSend(v4, "isEqualToString:", CFSTR("ar")) == 0; result = 12; if ( v18 ) return 0; } } } } } } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source