mirror of https://github.com/axmolengine/axmol.git
uses the cocos2d.x namespace for "cocos2d x" configuration values
This commit is contained in:
parent
f6665d492b
commit
bf08b6040a
|
@ -60,19 +60,19 @@ bool CCConfiguration::init(void)
|
|||
m_pDefaults = CCDictionary::create();
|
||||
m_pDefaults->retain();
|
||||
|
||||
m_pDefaults->setObject( CCString::create( cocos2dVersion() ), "cocos2d.version");
|
||||
m_pDefaults->setObject( CCString::create( cocos2dVersion() ), "cocos2d.x.version");
|
||||
|
||||
|
||||
#if CC_ENABLE_PROFILERS
|
||||
m_pDefaults->setObject( CCBool::create(true), "cocos2d.compiled_with_profiler");
|
||||
m_pDefaults->setObject( CCBool::create(true), "cocos2d.x.compiled_with_profiler");
|
||||
#else
|
||||
m_pDefaults->setObject( CCBool::create(false), "cocos2d.compiled_with_profiler");
|
||||
m_pDefaults->setObject( CCBool::create(false), "cocos2d.x.compiled_with_profiler");
|
||||
#endif
|
||||
|
||||
#if CC_ENABLE_GL_STATE_CACHE == 0
|
||||
m_pDefaults->setObject( CCBool::create(false), "cocos2d.compiled_with_gl_state_cache");
|
||||
m_pDefaults->setObject( CCBool::create(false), "cocos2d.x.compiled_with_gl_state_cache");
|
||||
#else
|
||||
m_pDefaults->setObject( CCBool::create(true), "cocos2d.compiled_with_gl_state_cache");
|
||||
m_pDefaults->setObject( CCBool::create(true), "cocos2d.x.compiled_with_gl_state_cache");
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue