mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 19:36:24 +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)
|
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…
Add table
Add a link
Reference in a new issue