mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
made floppy size configurable
This commit is contained in:
parent
0c778af9f1
commit
27e205dc3c
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user