mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 06:54:04 +09:00
reading uuid of clustered
This commit is contained in:
@@ -56,6 +56,7 @@ class TevdDiskDrive(private val vm: VM, private val driveNum: Int, theTevdPath:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val diskUUIDstr: String; get() = DOM.uuid.toString()
|
||||||
private val DBGPRN = false
|
private val DBGPRN = false
|
||||||
|
|
||||||
private fun printdbg(msg: Any) {
|
private fun printdbg(msg: Any) {
|
||||||
|
|||||||
@@ -29,19 +29,12 @@ class TevdMenu(parent: VMEmuExecutable, x: Int, y: Int, w: Int, h: Int) : EmuMen
|
|||||||
if (dev?.javaClass?.simpleName == "TevdDiskDrive") {
|
if (dev?.javaClass?.simpleName == "TevdDiskDrive") {
|
||||||
val dev = dev as TevdDiskDrive
|
val dev = dev as TevdDiskDrive
|
||||||
val DOM = dev.extortField("DOM") as PartialDOM
|
val DOM = dev.extortField("DOM") as PartialDOM
|
||||||
val DOMfileCache = DOM.extortField("fileCache") as HashMap<EntryID, *>
|
|
||||||
|
|
||||||
batch.inUse {
|
batch.inUse {
|
||||||
batch.color = Color.WHITE
|
batch.color = Color.WHITE
|
||||||
FONT.draw(batch, "Disk UUID: ${dev.diskUUIDstr}", 12f, 12f)
|
FONT.draw(batch, "Disk UUID: ${dev.diskUUIDstr}", 12f, 12f)
|
||||||
FONT.draw(batch, "F I L E C A C H E", 12f, 12f+FONT.H)
|
|
||||||
var row = 2
|
|
||||||
DOMfileCache.forEach { (id, entry) ->
|
|
||||||
val str = "${(row-1).toString().padStart(2,' ')}. ID $id (hits: ${entry.extortField("hits")})"
|
|
||||||
FONT.draw(batch, str, 12f, 12f + FONT.H * row)
|
|
||||||
|
|
||||||
row += 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user