mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
add terminateprocess
This commit is contained in:
1 file changed
+6
@@ -3,6 +3,7 @@ package org.cocos2dx.lib
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.pm.ApplicationInfo
|
||||
import android.os.Process
|
||||
|
||||
|
||||
@Suppress("unused")
|
||||
@@ -46,6 +47,11 @@ class Cocos2dxHelper {
|
||||
Cocos2dxBitmap.setContext(pContext)
|
||||
// Cocos2dxETCLoader.setContext(pContext)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun terminateProcess() {
|
||||
Process.killProcess(Process.myPid())
|
||||
}
|
||||
}
|
||||
|
||||
interface Cocos2dxHelperListener {
|
||||
|
||||
Reference in new issue
Block a user