CCApplication::getCurrentLanguage() get null on cocos2d-x

cocos2d-x

Solution

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

Problem

I'm working on Linux actually, but I use Mac too. I'm trying to add multi language support to my game, and I'm going to use different XML with tags. When I use `ccLanguageType _myLanguage = CCApplication::getCurrentLanguage()` get null, signal 11 exception. I have used `getCurrentLanguageJNI()` too but it did't work. What's going on?

Original source