CCApplication :: getCurrentLanguage () gets null for cocos2d-x

I actually work on Linux, but I also use a Mac.

I am trying to add multi-language support to my game and I am going to use different XML tags.

When I use ccLanguageType _myLanguage = CCApplication::getCurrentLanguage() get null, exception 11.

I also used getCurrentLanguageJNI() , but it did not work.

What's happening?

+6
source share
1 answer

Try using CCApplication :: sharedApplication (). getCurrentLanguage ();

+2
source

Source: https://habr.com/ru/post/919022/


All Articles