mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-07 08:49:08 +00:00
Updated Scripts (markdown)
+14
-20
@@ -2,24 +2,18 @@ After the info section, you can have as many individual scripts in your file as
|
|||||||
|
|
||||||
Here is an example of a script file that will download a file and then delete it
|
Here is an example of a script file that will download a file and then delete it
|
||||||
```json
|
```json
|
||||||
{
|
"Download & Delete": [
|
||||||
"info": {
|
{
|
||||||
"title": "Download & Delete",
|
"type": "downloadFile",
|
||||||
"description": "Download a file and then delete it",
|
"file": "https://github.com/Universal-Team/extras/raw/master/builds/LeafEdit/LeafEdit.3dsx",
|
||||||
"version": "1"
|
"output": "sdmc:/LeafEdit.3dsx",
|
||||||
|
"message": "Downloading LeafEdit.3dsx"
|
||||||
},
|
},
|
||||||
"Download & Delete": [
|
{
|
||||||
{
|
"type": "deleteFile",
|
||||||
"type": "downloadFile",
|
"file": "sdmc:/LeafEdit.3dsx",
|
||||||
"file": "https://github.com/Universal-Team/extras/raw/master/builds/LeafEdit/LeafEdit.3dsx",
|
"message": "Deleting LeafEdit.3dsx"
|
||||||
"output": "sdmc:/LeafEdit.3dsx",
|
}
|
||||||
"message": "Downloading 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**
|
||||||
"type": "deleteFile",
|
|
||||||
"file": "sdmc:/LeafEdit.3dsx",
|
|
||||||
"message": "Deleting LeafEdit.3dsx"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user