mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Add multiple commands
parent
491f98cf0f
commit
d904b33e2c
10
Scripting.md
10
Scripting.md
@ -40,7 +40,15 @@ 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.
|
**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`
|
**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. `-d` can be used to allow the user to browse dirs looking for a file. Syntax: `filesel <prompt> <path> <var>` Example: `filesel "Please select NAND backup" 0:/gm9/out/*_$[SERIAL]_???nand_???.bin NANDBAK`
|
||||||
|
|
||||||
|
**dirsel** command - same as `filesel`, but with selecting a directory. Note that a final slash is not expected on the path, and there can be no wildcard patterns. Syntax: `dirsel <prompt> <path> <var>` Example: `dirsel "Select game folder." A:/titles/40000000 GAMEDIR`
|
||||||
|
|
||||||
|
**allow** command - unlocks write permission to the specified location. `-a` will unlock write permissions for all files and directories in that location. Note: without this command, write permissions are still in place, the user will simply be prompted to unlock every time a write is attempted. Syntax: `allow <path>` Example: `allow S:/firm0.bin`
|
||||||
|
|
||||||
|
**mkdir** command - creates a dir at the specified location. Syntax: `mkdir <path>` Example: `mkdir 0:/gm9/in`
|
||||||
|
|
||||||
|
**fdummy** command - creates a dummy file at the specified location of a specified size. Existing files will not be overwritten. Syntax: `fdummy <path> <size in hex>` Example: `fdummy 0:/testfile.bin FF` (FF is 256 in regular numbers)
|
||||||
|
|
||||||
[more to come ofc]
|
[more to come ofc]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user