bootloader write fix

This commit is contained in:
minjaesong
2022-12-23 17:33:03 +09:00
parent 59399d84f9
commit b800989c6d
4 changed files with 10 additions and 4 deletions

View File

@@ -43,6 +43,8 @@ fun main(args: Array<String>) {
disk.checkReadOnly()
// disk.checkCapacity(4096)
it.parentEntryID = 1
(it.contents as EntryFile).let { file ->
val bytes = file.getContent()
bytes.appendBytes(ByteArray(4096 - bytes.size.toInt()))