Destroyed Scripts (markdown)

Pk11
2020-11-01 15:29:56 -06:00
parent aaf9fd094e
commit 12874fe767
-19
@@ -1,19 +0,0 @@
After the info section, you can have as many individual scripts in your file as you want. These need a name and all of the functions you want to run in the script. Functions are a `type` which tells Universal-Updater what to do, and all of the variables for that type. For info on functions see the pages under this in the sidebar.
Here is an example of a script file that will download a file and then delete it
```json
"Download & Delete": [
{
"type": "downloadFile",
"file": "https://github.com/Universal-Team/extras/raw/master/builds/LeafEdit/LeafEdit.3dsx",
"output": "sdmc:/LeafEdit.3dsx",
"message": "Downloading LeafEdit.3dsx"
},
{
"type": "deleteFile",
"file": "sdmc:/LeafEdit.3dsx",
"message": "Deleting LeafEdit.3dsx"
}
]
```
Note that scripts are json arrays and thus are a name followed by **square brackets** with the functions inside surrounded by **curly brackets**