mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-14 08:24:04 +09:00
VMGUI should start up the VM now
This commit is contained in:
@@ -71,6 +71,8 @@ class VMGUI(val loaderInfo: EmulInstance, val viewportWidth: Int, val viewportHe
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun init() {
|
private fun init() {
|
||||||
|
vm.init()
|
||||||
|
|
||||||
if (loaderInfo.display != null) {
|
if (loaderInfo.display != null) {
|
||||||
val loadedClass = Class.forName(loaderInfo.display)
|
val loadedClass = Class.forName(loaderInfo.display)
|
||||||
val loadedClassConstructor = loadedClass.getConstructor(String::class.java, vm::class.java)
|
val loadedClassConstructor = loadedClass.getConstructor(String::class.java, vm::class.java)
|
||||||
@@ -118,6 +120,7 @@ class VMGUI(val loaderInfo: EmulInstance, val viewportWidth: Int, val viewportHe
|
|||||||
coroutineJob = Thread({
|
coroutineJob = Thread({
|
||||||
vmRunner.executeCommand(vm.roms[0]!!.readAll())
|
vmRunner.executeCommand(vm.roms[0]!!.readAll())
|
||||||
}, "VmRunner:${vm.id}")
|
}, "VmRunner:${vm.id}")
|
||||||
|
coroutineJob.start()
|
||||||
}
|
}
|
||||||
|
|
||||||
private var rebootRequested = false
|
private var rebootRequested = false
|
||||||
|
|||||||
Reference in New Issue
Block a user