forked from Mirror/GodMode9
Lua examples: Small error corrections (#898)
* HelloScript.lua: Correct typos * Lua docs: fget corresponds to fs.read_file
This commit is contained in:
parent
712df196f1
commit
bc84780036
@ -60,7 +60,7 @@ mount | fs.img_mount |
|
||||
umount | fs.img_umount |
|
||||
find | fs.find |
|
||||
findnot | fs.find_not |
|
||||
fget | fs.write_file |
|
||||
fget | fs.read_file |
|
||||
fset | fs.write_file |
|
||||
sha | fs.hash_file OR fs.verify_with_sha_file | hash_file simply returns a hash, verify_with_sha_file compares it with a corresponding .sha file
|
||||
shaget | fs.hash_file |
|
||||
|
@ -61,7 +61,7 @@ fs.copy("M:/otp.mem", "9:/otp_copied_by_lua.mem", {overwrite=true})
|
||||
-- SCRIPT - the executed script, such as "0:/gm9/luascripts/HelloScript.lua"
|
||||
-- CURRDIR - the directory of the executed script, such as "0:/gm9/luascripts"
|
||||
-- GM9OUT - the standard output path "0:/gm9/out"
|
||||
-- HAX - the hax the system is currently running from, whihc can be "ntrboot", "sighax", or an empty string
|
||||
-- HAX - the hax the system is currently running from, which can be "ntrboot", "sighax", or an empty string
|
||||
-- NANDSIZE - total size of SysNAND in bytes
|
||||
-- CONSOLE_TYPE - the string "O3DS" or "N3DS"
|
||||
-- IS_DEVKIT - true if the console is a developer unit
|
||||
@ -82,7 +82,7 @@ end
|
||||
ui.echo("Your GodMode9 version is "..GM9VER..
|
||||
"\nYour region is "..sys.region..
|
||||
"\nYour serial number is "..sys.serial..
|
||||
"\nYour std out oath is "..GM9OUT..
|
||||
"\nYour std out path is "..GM9OUT..
|
||||
"\nCurrent dir is "..CURRDIR..
|
||||
"\nCurrent hax is "..HAX..
|
||||
"\nYour system is a "..retail_or_devkit..
|
||||
|
Loading…
x
Reference in New Issue
Block a user