mirror of https://github.com/axmolengine/axmol.git
Merge branch 'master' of https://github.com/styck/cocos2d-x into pullrequest#611
Conflicts: tests/test.marmalade/test.mkb
This commit is contained in:
commit
8298e0b6ff
|
@ -137,7 +137,47 @@ CCApplication& CCApplication::sharedApplication()
|
||||||
|
|
||||||
ccLanguageType CCApplication::getCurrentLanguage()
|
ccLanguageType CCApplication::getCurrentLanguage()
|
||||||
{
|
{
|
||||||
return kLanguageEnglish;
|
int nLanguageIdx;
|
||||||
|
ccLanguageType currentLanguage;
|
||||||
|
|
||||||
|
nLanguageIdx = s3eDeviceGetInt(S3E_DEVICE_LANGUAGE);
|
||||||
|
|
||||||
|
switch (nLanguageIdx)
|
||||||
|
{
|
||||||
|
case S3E_DEVICE_LANGUAGE_ENGLISH:
|
||||||
|
currentLanguage = kLanguageEnglish;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_SIMPL_CHINESE:
|
||||||
|
case S3E_DEVICE_LANGUAGE_TRAD_CHINESE:
|
||||||
|
currentLanguage = kLanguageChinese;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_FRENCH:
|
||||||
|
currentLanguage = kLanguageFrench;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_ITALIAN:
|
||||||
|
currentLanguage = kLanguageItalian;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_GERMAN:
|
||||||
|
currentLanguage = kLanguageGerman;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_SPANISH:
|
||||||
|
currentLanguage = kLanguageSpanish;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case S3E_DEVICE_LANGUAGE_RUSSIAN:
|
||||||
|
currentLanguage = kLanguageItalian;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
currentLanguage = kLanguageRussian;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return currentLanguage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,11 @@ files
|
||||||
"*.h"
|
"*.h"
|
||||||
"*.cpp"
|
"*.cpp"
|
||||||
|
|
||||||
|
[Tests/FontTest]
|
||||||
|
("../tests/FontTest")
|
||||||
|
"*.h"
|
||||||
|
"*.cpp"
|
||||||
|
|
||||||
[Tests/HiResTest]
|
[Tests/HiResTest]
|
||||||
("../tests/HiResTest")
|
("../tests/HiResTest")
|
||||||
"*.h"
|
"*.h"
|
||||||
|
@ -135,6 +140,11 @@ files
|
||||||
"*.h"
|
"*.h"
|
||||||
"*.cpp"
|
"*.cpp"
|
||||||
|
|
||||||
|
[Tests/CurrentLanguageTest]
|
||||||
|
("../tests/CurrentLanguageTest")
|
||||||
|
"*.h"
|
||||||
|
"*.cpp"
|
||||||
|
|
||||||
[Tests/MenuTest]
|
[Tests/MenuTest]
|
||||||
("../tests/MenuTest")
|
("../tests/MenuTest")
|
||||||
"*.h"
|
"*.h"
|
||||||
|
|
|
@ -58,8 +58,9 @@ static TestScene* CreateTestScene(int nIdx)
|
||||||
#else
|
#else
|
||||||
#ifdef MARMALADEUSECHIPMUNK
|
#ifdef MARMALADEUSECHIPMUNK
|
||||||
#if (MARMALADEUSECHIPMUNK == 1)
|
#if (MARMALADEUSECHIPMUNK == 1)
|
||||||
pScene = new ChipmunkTestScene(); break;
|
pScene = new ChipmunkTestScene();
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
case TEST_LABEL:
|
case TEST_LABEL:
|
||||||
|
@ -111,11 +112,11 @@ static TestScene* CreateTestScene(int nIdx)
|
||||||
pScene = new DirectorTestScene(); break;
|
pScene = new DirectorTestScene(); break;
|
||||||
case TEST_BUGS:
|
case TEST_BUGS:
|
||||||
pScene = new BugsTestScene(); break;
|
pScene = new BugsTestScene(); break;
|
||||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
|
||||||
case TEST_FONTS:
|
case TEST_FONTS:
|
||||||
pScene = new FontTestScene(); break;
|
pScene = new FontTestScene(); break;
|
||||||
case TEST_CURRENT_LANGUAGE:
|
case TEST_CURRENT_LANGUAGE:
|
||||||
pScene = new CurrentLanguageTestScene(); break;
|
pScene = new CurrentLanguageTestScene(); break;
|
||||||
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
||||||
case TEST_TEXTURECACHE: pScene = new TextureCacheTestScene(); break;
|
case TEST_TEXTURECACHE: pScene = new TextureCacheTestScene(); break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue