mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
clustered tevd integration wip
This commit is contained in:
@@ -155,7 +155,7 @@ class TevdDiskDrive(private val vm: VM, private val driveNum: Int, theTevdPath:
|
||||
file.pwrite(writeBuffer, 0, writeBuffer.size, filesize)
|
||||
}
|
||||
else if (writeMode)
|
||||
file.writeBytes(writeBuffer)
|
||||
file.overwrite(writeBuffer)
|
||||
|
||||
writeMode = false
|
||||
appendMode = false
|
||||
@@ -167,9 +167,10 @@ class TevdDiskDrive(private val vm: VM, private val driveNum: Int, theTevdPath:
|
||||
val inputData = if (inputData.size != BLOCK_SIZE) ByteArray(BLOCK_SIZE) { if (it < inputData.size) inputData[it] else 0 }
|
||||
else inputData
|
||||
|
||||
file.writeBytes(inputData)
|
||||
DOM.writeBoot(inputData)
|
||||
|
||||
fileOpenMode = -1
|
||||
fileOpen = false
|
||||
}
|
||||
else {
|
||||
val inputString = inputData.trimNull().toString(VM.CHARSET)
|
||||
|
||||
Reference in New Issue
Block a user