From ffbd03a4d1cf206f04ad4fef7fdcc8896a557ef7 Mon Sep 17 00:00:00 2001 From: SirNapkin1334 <31591796+SirNapkin1334@users.noreply.github.com> Date: Wed, 25 Apr 2018 09:13:00 -0700 Subject: [PATCH] Add filesel & wildcards section (someone please rewrite the latter - i'm really tired and can't really write stuff well) --- Scripting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripting.md b/Scripting.md index c79b596..4d016c5 100644 --- a/Scripting.md +++ b/Scripting.md @@ -15,6 +15,8 @@ To run a script that's not present in this folder, it can be manually executed b GodMode9 scripts resemble shell scripts. Comments are denoted by `#` and work anywhere. Variable are in the format `$[VAR]` where `VAR` is the name of the variable. (i.e. $[HAX]). Surround an argument with `"` if it must contain whitespaces. Any redundant whitespaces outside of `"` will be treated as a single whitespace. An unknown command will lead to a script abort. +#### Wildcards +(please reword this better, I don't know how to say it well) - (short explanation of what they do here) - GodMode9 has support for two types of Wildcards, `*` and `?`. `*` will check for anything of any length, while `?` will check for only one character (multiple `?` can be used in a row to make a set amount of characters) #### `-o` and `-s` Switches You can use `-o` and/or `-s` switches on any command, or `--optional` / `--silent` respectively. `-o` Continues on failures of a command, and `-s` will try to suppress all error messages. @@ -38,6 +40,8 @@ A short description of every command. Click on the command to go to a more detai **input** command - allows you to prompt the user to enter a string and store it in a variable. Syntax: `input ` Example: `input "Choose name for test dir?" DIRNAME` Note: the variable can be created beforehand with `set` to preset the initial value. +**filesel** command - allows the user to choose a file from in a specific directory / drive. The path is stored in a variable and can be limited via wildcards. Syntax: `filesel [-d] ` Example: `filesel "Please select NAND backup" 0:/gm9/out/*_$[SERIAL]_???nand_???.bin NANDBAK` + [more to come ofc]