_CC_DEFAULT_SETTINGS constant
A comma separated list of default values for the settings API.
| _CC_DEFAULT_SETTINGS Constant | |
|---|---|
|
Type string Value | |
| API | Base globals |
| Source | CC:Tweaked |
| Added in | ComputerCraft 1.79 |
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.
|
|||
| Disables disk startup on new computers | |||
| Code | <nowiki>
-- In ComputerCraft.cfg:
-- S:default_computer_settings=shell.allow_disk_startup=false
print(settings.get("shell.allow_disk_startup"))
</nowiki>
|
||
| Output | false
|
||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.