forked from MeloNX/MeloNX
android - set isStarted check early
This commit is contained in:
parent
ba3438f24a
commit
96c4edb697
@ -85,6 +85,8 @@ class GameHost(context: Context?, private val mainViewModel: MainViewModel) : Su
|
|||||||
if (_isStarted)
|
if (_isStarted)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
_isStarted = true
|
||||||
|
|
||||||
game = if (mainViewModel.isMiiEditorLaunched) null else mainViewModel.gameModel;
|
game = if (mainViewModel.isMiiEditorLaunched) null else mainViewModel.gameModel;
|
||||||
|
|
||||||
_nativeRyujinx.inputInitialize(width, height)
|
_nativeRyujinx.inputInitialize(width, height)
|
||||||
@ -102,7 +104,6 @@ class GameHost(context: Context?, private val mainViewModel: MainViewModel) : Su
|
|||||||
_guestThread = thread(start = true) {
|
_guestThread = thread(start = true) {
|
||||||
runGame()
|
runGame()
|
||||||
}
|
}
|
||||||
_isStarted = true
|
|
||||||
|
|
||||||
_updateThread = thread(start = true) {
|
_updateThread = thread(start = true) {
|
||||||
var c = 0
|
var c = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user