android - set isStarted check early

This commit is contained in:
Emmanuel Hansen 2024-01-20 19:04:28 +00:00
parent ba3438f24a
commit 96c4edb697

View File

@ -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