mirror of https://github.com/axmolengine/axmol.git
Fixed cannot differentiate between Windows Phone Application and Windows Store Application by `Application::getTargetPlatform`
This commit is contained in:
parent
60372056ce
commit
ed029d264f
|
@ -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 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue