mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
android - set isStarted check early
This commit is contained in:
parent
ba3438f24a
commit
96c4edb697
1 changed files with 2 additions and 1 deletions
|
@ -85,6 +85,8 @@ class GameHost(context: Context?, private val mainViewModel: MainViewModel) : Su
|
|||
if (_isStarted)
|
||||
return
|
||||
|
||||
_isStarted = true
|
||||
|
||||
game = if (mainViewModel.isMiiEditorLaunched) null else mainViewModel.gameModel;
|
||||
|
||||
_nativeRyujinx.inputInitialize(width, height)
|
||||
|
@ -102,7 +104,6 @@ class GameHost(context: Context?, private val mainViewModel: MainViewModel) : Su
|
|||
_guestThread = thread(start = true) {
|
||||
runGame()
|
||||
}
|
||||
_isStarted = true
|
||||
|
||||
_updateThread = thread(start = true) {
|
||||
var c = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue