V3.6.0 exit (#11856)

This commit is contained in:
timlyeee
2022-07-07 14:07:47 +08:00
committed by GitHub
parent 80697b676c
commit b43de1af07
22 changed files with 82 additions and 22 deletions
@@ -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