mirror of https://github.com/axmolengine/axmol.git
issue #2397: Mark Application::sharedApplication as deprecated function.
This commit is contained in:
parent
a83cc0ff69
commit
3bdf6b9c69
|
@ -61,6 +61,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
std::string languageName = getCurrentLanguageJNI();
|
||||
|
|
|
@ -31,6 +31,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -107,6 +107,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
ccLanguageType ret_language = kLanguageEnglish;
|
||||
|
|
|
@ -31,6 +31,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -99,6 +99,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
return kLanguageEnglish;
|
||||
|
|
|
@ -31,6 +31,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -49,6 +49,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Callback by Director for limit FPS.
|
||||
@interval The time, expressed in seconds, between current frame and next.
|
||||
|
|
|
@ -69,6 +69,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
// get the current language and country config
|
||||
|
|
|
@ -98,6 +98,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
char *pLanguageName = getenv("LANG");
|
||||
|
|
|
@ -38,6 +38,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/* override functions */
|
||||
virtual ccLanguageType getCurrentLanguage();
|
||||
|
||||
|
|
|
@ -58,6 +58,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -75,6 +75,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
// get the current language and country config
|
||||
|
|
|
@ -136,6 +136,12 @@ Application* Application::getInstance() // MH Cocos2dx Director class expects th
|
|||
return sm_pSharedApplication; // MH Cocos2dx Director class expects this to return a pointer and not a reference
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
int nLanguageIdx;
|
||||
|
|
|
@ -79,6 +79,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance(); // MH Cocos2dx Director class expects this to return a pointer and not a reference
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -101,6 +101,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
ccLanguageType ret = kLanguageEnglish;
|
||||
|
|
|
@ -54,6 +54,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/* override functions */
|
||||
virtual ccLanguageType getCurrentLanguage();
|
||||
|
||||
|
|
|
@ -78,6 +78,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
result r = E_SUCCESS;
|
||||
|
|
|
@ -59,6 +59,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/**
|
||||
@brief Get current language config
|
||||
@return Current language config
|
||||
|
|
|
@ -106,6 +106,12 @@ Application* Application::getInstance()
|
|||
return sm_pSharedApplication;
|
||||
}
|
||||
|
||||
// @deprecated Use getInstance() instead
|
||||
Application* Application::sharedApplication()
|
||||
{
|
||||
return Application::getInstance();
|
||||
}
|
||||
|
||||
ccLanguageType Application::getCurrentLanguage()
|
||||
{
|
||||
ccLanguageType ret = kLanguageEnglish;
|
||||
|
|
|
@ -27,6 +27,9 @@ public:
|
|||
*/
|
||||
static Application* getInstance();
|
||||
|
||||
/** @deprecated Use getInstance() instead */
|
||||
CC_DEPRECATED_ATTRIBUTE static Application* sharedApplication();
|
||||
|
||||
/* override functions */
|
||||
virtual void setAnimationInterval(double interval);
|
||||
virtual ccLanguageType getCurrentLanguage();
|
||||
|
|
Loading…
Reference in New Issue