Fixed cannot differentiate between Windows Phone Application and Windows Store Application by `Application::getTargetPlatform`

This commit is contained in:
WenhaiLin 2015-06-23 18:40:39 +08:00
parent 60372056ce
commit ed029d264f
2 changed files with 6 additions and 2 deletions

View File

@ -56,8 +56,8 @@ public:
OS_NACL,/** Nacl */
OS_EMSCRIPTEN,/** Emscripten */
OS_TIZEN,/** Tizen */
OS_WINRT,/** Winrt */
OS_WP8/** WP8 */
OS_WINRT,/** Windows Store Applications */
OS_WP8/** Windows Phone Applications */
};
/**

View File

@ -214,7 +214,11 @@ LanguageType Application::getCurrentLanguage()
Application::Platform Application::getTargetPlatform()
{
#if (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
return Platform::OS_WP8;
#else
return Platform::OS_WINRT;
#endif
}
bool Application::openURL(const std::string &url)