Updated Scripting (markdown)

suchmememanyskill 2020-02-07 12:23:47 +01:00
parent c71633745c
commit 99882872ba

@ -1,4 +1,5 @@
You can make custom scripts in TegraExplorer to automate certain things
You can make custom scripts in TegraExplorer to automate certain things.
The extention of them are .tegrascript, and they are normal text files.
## Syntax
@ -13,6 +14,8 @@ The extention of them are .tegrascript, and they are normal text files.
|:-------:|:--------:|
| \<COPY\> "arg1" "arg2" | Copy a file from arg1 to arg2 |
| \<COPY-R\> "arg1" "arg2" | Copy a folder from arg1 to the parent folder arg2 (so for example, arg1 is sd:/foo, arg2 is sd:/bar, you'll end up with sd:/bar/foo)
| \<DEL\> "arg1" | Deletes a file at location arg1 |
| \<DEL-R\> "arg1 | Deletes a folder and it's subcontents at location arg1 |
| \<MKDIR\> "arg1" | Make a dir at location arg1 |
| \<CON_MMC\> "arg1" | Connect a type of mmc. "SYSMMC" for sysmmc, "EMUMMC" for emummc |
| \<MNT_MMC\> "arg1" | Mount a partition on the currently mounted mmc. Currently locked to biskey 2/3 (so "SYSTEM" and "USER" only) |
@ -31,7 +34,8 @@ Flags are basically checks, written as $FLAG$. See below for how to use them
| $BTN_POWER$ | Based on the last \<PAUSE\> output. If the power button was pressed, this will return True |
| $BTN_VOL+$ | Based on the last \<PAUSE\> output. If the volume up button was pressed, this will return True |
| $BTN_VOL-$ | Based on the last \<PAUSE\> output. If the volume down button was pressed, this will return True |
| $EMUMMC$ | Check if an emummc exists. Returns true if it does |
| $NOEMUMMC$ | Check if an emummc doesn't exist. Return true if it does |
## Flow control