Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/platform/linux/Application-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ Application* Application::getInstance()
return sm_pSharedApplication;
}

#ifndef AX_CORE_PROFILE
// @deprecated Use getInstance() instead
Application* Application::sharedApplication()
{
return Application::getInstance();
}
#endif

const char* Application::getCurrentLanguageCode()
{
Expand Down
4 changes: 4 additions & 0 deletions core/platform/wasm/Application-wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ void Application::setAnimationInterval(float interval)
s_animationInterval = static_cast<int64_t>(interval * NANOSECONDSPERSECOND);
}

#ifndef AX_CORE_PROFILE
void Application::setResourceRootPath(const std::string& rootResDir)
{
_resourceRootPath = rootResDir;
Expand All @@ -228,6 +229,7 @@ const std::string& Application::getResourceRootPath()
{
return _resourceRootPath;
}
#endif

Application::Platform Application::getTargetPlatform()
{
Expand Down Expand Up @@ -255,11 +257,13 @@ Application* Application::getInstance()
return sm_pSharedApplication;
}

#ifndef AX_CORE_PROFILE
// @deprecated Use getInstance() instead
Application* Application::sharedApplication()
{
return Application::getInstance();
}
#endif

const char* Application::getCurrentLanguageCode()
{
Expand Down
Loading