From ComputerCraft Wiki
Revision as of 03:13, 10 June 2016 by Bomb Bloke
|Removes a setting from the currently loaded set. If you wish to unload all settings, refer to settings.clear().|
Note that when the system reboots, first the default settings will be reloaded, and then (if it exists on the root of the drive) the ".settings" file will also be reloaded. Saving an empty ".settings" file will not in any way affect the loaded defaults - if you want a particular default setting completely cleared on boot, then settings.unset(setting) must be called on startup.
|Randomly unsets a setting.|
local curSettings = settings.getNames() print("Initial loaded settings:\n") textutils.pagedTabulate( curSettings ) if #curSettings > 0 then settings.unset( curSettings[ math.random( #curSettings ) ] ) end print("\nResulting loaded settings:\n") textutils.pagedTabulate( settings.getNames() )
|Settings API Functions|
|settings.set - settings.get - settings.unset - settings.clear - settings.getNames - settings.load - settings.save|