_CC_DEFAULT_SETTINGS constant

From ComputerCraft
Jump to: navigation, search
_CC_DEFAULT_SETTINGS
Constant
Type
string
Value

API Base globals
Source CC:Tweaked
Added in ComputerCraft 1.79

A comma separated list of default values for the settings API.

The value of this constant can be changed through the default_computer_settings option in ComputerCraft's config file. When a computer starts, the constant is parsed and the computer's settings updated. Note that these values are only defaults, settings.set and the .settings file will still override them.

ExampleExampleDisabling disk startup
Disables disk startup on new computers
Code
-- In ComputerCraft.cfg:
--   S:default_computer_settings=shell.allow_disk_startup=false

print(settings.get("shell.allow_disk_startup"))
Output
false