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()
|
Application::Platform Application::getTargetPlatform()
|
||||||
{
|
{
|
||||||
#if (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
|
if (isWindowsPhone())
|
||||||
return Platform::OS_WP8;
|
{
|
||||||
#else
|
return Platform::OS_WP8;
|
||||||
return Platform::OS_WINRT;
|
}
|
||||||
#endif
|
else
|
||||||
|
{
|
||||||
|
return Platform::OS_WINRT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Application::openURL(const std::string &url)
|
bool Application::openURL(const std::string &url)
|
||||||
|
|
Loading…
Reference in New Issue