mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
V3.6.0 exit (#11856)
This commit is contained in:
@@ -74,5 +74,12 @@ SystemWindow::Size SystemWindow::getViewSize() const {
|
||||
static_cast<float>(JNI_NATIVE_GLUE()->getHeight())};
|
||||
#endif
|
||||
}
|
||||
|
||||
void SystemWindow::closeWindow() {
|
||||
#if (CC_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
finishActivity();
|
||||
#else
|
||||
cc::EventDispatcher::dispatchCloseEvent();
|
||||
exit(0); //TODO(cc): better exit for ohos
|
||||
#endif
|
||||
}
|
||||
} // namespace cc
|
||||
|
||||
Reference in New Issue
Block a user