mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Add Environmental Variables subsubsection. (unfinished)
parent
78539536c5
commit
fd95b13b9e
15
Scripting.md
15
Scripting.md
@ -17,4 +17,17 @@ A short description of every command. Click on the command to go to a more detai
|
|||||||
|
|
||||||
**echo** command - Outputs data to the screen. Syntax: `echo "<text to be outputted>"` Example: `echo "Hello There!"`
|
**echo** command - Outputs data to the screen. Syntax: `echo "<text to be outputted>"` Example: `echo "Hello There!"`
|
||||||
|
|
||||||
**chk** command - Checks two values against each other. Syntax: `chk <value1> <value2>` Example: `chk $[HAX] a9lh`
|
**chk** command - Checks two values against each other. Syntax: `chk <value1> <value2>` Example: `chk $[HAX] a9lh`
|
||||||
|
|
||||||
|
[more to come ofc]
|
||||||
|
|
||||||
|
#### Environmental Variables
|
||||||
|
|
||||||
|
Environmental Variables are variables that are always available, no matter what. They are determined when GodMode9 boots, and cannot be changed via scripting commands. Remember, when including a variable in a command, use `$[VAR]` where `VAR` is the name of the variable (i.e. `$[HAX]`).
|
||||||
|
|
||||||
|
`GM9VER` - the version of the currently running GodMode9 firm. (i.e. v5.0.0)
|
||||||
|
`REGION` - the region of the console's SysNAND. (can be `USA`, `EUR`, `JPN`, `KOR`, `CHN`, `TWN`, or `UNK` for unknown)
|
||||||
|
`SERIAL` - the serial of the console's SysNAND, not including Check Digit. (i.e. `CW13701547`)
|
||||||
|
`GM9OUT` - the standard output path (i.e. `0:/gm9/out`)
|
||||||
|
`CURRDIR` - the directory the script is running from (i.e. `0:/gm9/scripts`)
|
||||||
|
`HAX` - the exploit the system is running from (can be `ntrboot`, `sighax`, `a9lh`, or ` ` (empty, would be ""))
|
Loading…
x
Reference in New Issue
Block a user