mirror of https://github.com/axmolengine/axmol.git
can't close app on WP8
This commit is contained in:
parent
db8efd32f7
commit
210f95c2d3
|
@ -78,6 +78,11 @@ bool HelloWorld::init()
|
|||
|
||||
void HelloWorld::menuCloseCallback(Ref* pSender)
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
||||
MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert");
|
||||
return;
|
||||
#endif
|
||||
|
||||
Director::getInstance()->end();
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
|
|
@ -78,6 +78,11 @@ bool HelloWorld::init()
|
|||
|
||||
void HelloWorld::menuCloseCallback(Ref* sender)
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
||||
MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert");
|
||||
return;
|
||||
#endif
|
||||
|
||||
Director::getInstance()->end();
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
|
Loading…
Reference in New Issue