I'm writing a game on cocos2d-x for android. I made myself localized following the example from this site . Everything worked, but one fine day I decided to upgrade cocos2d-x from 3.3 to 3.10 .

There is a string LanguageType langKey = Application::getInstance()->getCurrentLanguage(); that defines the device language. In the new version of the coconut, the program began to fall on this line with Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1) . In version 3.3 everything worked fine.

In this regard, the question is - how to fix it and what other ways are there to determine the device language in cocos2d-x 3.10 ?

  • And what is Application::getInstance() ? Not null hour? - VladD
  • Checked, not null . Falls on getCurrentLanguage(); - Andrey Kuruljov
  • Go inside the getCurrentLanguage() debugger, maybe it will clear up. - Vladimir Gamalyan

0