CCApplication::getCurrentLanguage() get null on cocos2d-x
Asked Answered
F

1

7

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?

Fruity answered 26/6, 2012 at 11:25 Comment(0)
P
3

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

Plagiarize answered 12/9, 2012 at 10:49 Comment(1)
Deprecated in version 3.7. Use getInstance() insteadAntidromic

© 2022 - 2024 — McMap. All rights reserved.