http://www.computercraft.info/wiki/index.php?title=Settings.save&feed=atom&action=historySettings.save - Revision history2024-03-28T16:36:35ZRevision history for this page on the wikiMediaWiki 1.24.1http://www.computercraft.info/wiki/index.php?title=Settings.save&diff=7425&oldid=prevBomb Bloke: Created page with "{{lowercase}} {{Function |name=settings.save |args={{Type|string}} path |returns={{Type|boolean}} success |api=settings |addon=ComputerCraft |desc=Saves all current settings -..."2016-06-10T02:37:35Z<p>Created page with "{{lowercase}} {{Function |name=settings.save |args={{Type|string}} path |returns={{Type|boolean}} success |api=settings |addon=ComputerCraft |desc=Saves all current settings -..."</p>
<p><b>New page</b></p><div>{{lowercase}}<br />
{{Function<br />
|name=settings.save<br />
|args={{Type|string}} path<br />
|returns={{Type|boolean}} success<br />
|api=settings<br />
|addon=ComputerCraft<br />
|desc=Saves all current settings - including those loaded as [[Settings_(API)#Default_Settings|defaults]] - to the specified file, as a serialised table.<br><br><br />
<br />
If a file titled ".settings" is saved to the root of a computer's drive, it will be automatically loaded on startup (without need to call [[settings.load|settings.load()]]).<br />
|examples=<br />
{{Example<br />
|desc=Disables use of startup files from floppies on subsequent reboots by saving a new default settings file.<br />
|code= [[settings.set]]("shell.allow_disk_startup", false)<br />
settings.save(".settings")<br />
}}<br />
}}<br />
<br />
{{SettingsAPIFunctions}}<br />
<br />
[[Category:API_Functions]]</div>Bomb Bloke