gpt4 book ai didi

cocos2d-x - CCApplication::getCurrentLanguage() 在 cocos2d-x 上获取 null

转载 作者:行者123 更新时间:2023-12-04 12:42:29 25 4
gpt4 key购买 nike

我实际上在 Linux 上工作,但我也使用 Mac。

我正在尝试为我的游戏添加多语言支持,并且我将使用带有标签的不同 XML。

当我使用 ccLanguageType _myLanguage = CCApplication::getCurrentLanguage()获取空值,发出信号 11 异常。

我用过 getCurrentLanguageJNI()也是,但它没有用。

这是怎么回事?

最佳答案

尝试使用 CCApplication::sharedApplication().getCurrentLanguage();

关于cocos2d-x - CCApplication::getCurrentLanguage() 在 cocos2d-x 上获取 null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11206316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com