savegame cracker: fixing a mistake that space chars would not tokenise the command input

This commit is contained in:
minjaesong
2022-08-31 12:54:39 +09:00
parent 6429d53be6
commit 760188ebe9

View File

@@ -140,6 +140,9 @@ class SavegameCracker(
sendout()
mode = 39
}
else if (c == ' ') {
sendout()
}
else
sb.append(c)
}
@@ -228,6 +231,8 @@ class SavegameCracker(
val id0 = args[1].toLong(10)
val id1 = args[2].toLong(10)
if (it.entries.containsKey(id1)) throw IllegalArgumentException("Entry ID $id1 already exists")
val entry = it.entries.remove(id0)!!
entry.entryID = id1
it.entries[id1] = entry