made floppy size configurable

This commit is contained in:
Florian Nücke 2013-11-29 16:14:27 +01:00
parent 0c778af9f1
commit 27e205dc3c
3 changed files with 5 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Settings(config: Config) {
OpenComputers.log.warning("Bad number of HDD sizes, ignoring.")
Array(2048, 4096, 8192)
}
val floppySize = config.getInt("filesystem.floppySize") max 0
val maxHandles = config.getInt("filesystem.maxHandles") max 0
val maxReadBuffer = config.getInt("filesystem.maxReadBuffer") max 0

View File

@ -31,7 +31,7 @@ object FileSystem extends Item {
}
} else Items.multi.subItem(stack) match {
case Some(hdd: HardDiskDrive) => createEnvironment(stack, hdd.kiloBytes * 1024)
case Some(disk: Disk) => createEnvironment(stack, 512 * 1024)
case Some(disk: Disk) => createEnvironment(stack, Settings.get.floppySize * 1024)
case _ => null
}

View File

@ -377,6 +377,9 @@ opencomputers {
8192
]
# The size of writable floppy disks, in kilobytes.
floppySize: 512
# The maximum number of file handles any single computer may have open at
# a time. Note that this is *per filesystem*. Also note that this is only
# enforced by the filesystem node - if an add-on decides to be fancy it