This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gril002's profile picture

Settings API

Started by gril002, 09 June 2016 - 04:20 PM
gril002 #1
Posted 09 June 2016 - 06:20 PM
So i found out that there is a new Settings API since 1.77. I see you can set so that there is a setting so that it dosen't startup from a disk if there is one which is something i need. Now since it's new there is incomplete documentation on the wiki (there is no example) and I can't to get it to work. So does anyone know how t use it by any chance?
Bomb Bloke #2
Posted 10 June 2016 - 03:11 AM
settings.set("shell.allow_disk_startup", false)
settings.save(".settings")
gril002 #3
Posted 10 June 2016 - 01:25 PM
thanks. I forgot the shell. at the beginig
Lupus590 #4
Posted 10 June 2016 - 10:08 PM
isn't there a set program?
Bomb Bloke #5
Posted 11 June 2016 - 02:15 AM
Yes, that'll automatically save new values to .settings, as it turns out.

set shell.allow_disk_startup false