mirror of https://github.com/axmolengine/axmol.git
use isWindowsPhone() to check for Windows Phone platform
This commit is contained in:
parent
161954da87
commit
09a1211c96
|
@ -214,11 +214,14 @@ LanguageType Application::getCurrentLanguage()
|
|||
|
||||
Application::Platform Application::getTargetPlatform()
|
||||
{
|
||||
#if (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
|
||||
return Platform::OS_WP8;
|
||||
#else
|
||||
return Platform::OS_WINRT;
|
||||
#endif
|
||||
if (isWindowsPhone())
|
||||
{
|
||||
return Platform::OS_WP8;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Platform::OS_WINRT;
|
||||
}
|
||||
}
|
||||
|
||||
bool Application::openURL(const std::string &url)
|
||||
|
|
Loading…
Reference in New Issue