mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-12-06 19:02:50 +00:00
Destroyed Scripts (markdown)
1 parent
aaf9fd094e
commit
12874fe767
1 file changed
-19
-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**
|
||||
Reference in new issue
Block a user