mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
33 lines
866 B
Kotlin
33 lines
866 B
Kotlin
package net.torvald.terrarum.modulebasegame.console
|
|
|
|
/**
|
|
* Created by minjaesong on 2021-08-30.
|
|
*/
|
|
/*object Load : ConsoleCommand {
|
|
|
|
override fun execute(args: Array<String>) {
|
|
if (args.size == 2) {
|
|
try {
|
|
Echo("${ccC}Changing context, ${ccR}do not touch the controller$ccC and ${ccG}wait$ccC$ELLIPSIS")
|
|
|
|
val charset = Common.CHARSET
|
|
val file = File(App.defaultDir + "/Exports/${args[1]}")
|
|
val disk = VDUtil.readDiskArchive(file, Level.INFO)
|
|
|
|
LoadSavegame(disk)
|
|
}
|
|
catch (e: IOException) {
|
|
Echo("Load: IOException raised.")
|
|
e.printStackTrace()
|
|
}
|
|
}
|
|
else {
|
|
printUsage()
|
|
}
|
|
}
|
|
|
|
override fun printUsage() {
|
|
Echo("Usage: load <filename>")
|
|
}
|
|
|
|
}*/ |