mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-08-16 06:41:03 +00:00
Add filesel & wildcards section (someone please rewrite the latter - i'm really tired and can't really write stuff well)
parent
c8f32dc66c
commit
ffbd03a4d1
@ -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 <prompt> <varname>` 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] <prompt> <path> <var>` Example: `filesel "Please select NAND backup" 0:/gm9/out/*_$[SERIAL]_???nand_???.bin NANDBAK`
|
||||
|
||||
[more to come ofc]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user