even more emulator gui(2)

This commit is contained in:
minjaesong
2022-10-29 01:30:42 +09:00
parent 3413b0d053
commit d576382567
5 changed files with 103 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ class VM(
var getErrorStream: () -> OutputStream = { TODO() }
var getInputStream: () -> InputStream = { TODO() }
var startTime: Long = -1
var startTime: Long = -1; private set
var resetDown = false
var stopDown = false
@@ -117,8 +117,14 @@ class VM(
killAllContexts()
usermem.destroy()
peripheralTable.forEach { it.peripheral?.dispose() }
disposed = true
}
/**
* To check if the VM has started, check if startTime >= 0
*/
var disposed = false; private set
/**
* @return system uptime in milliseconds
*/