Lua examples: Small error corrections (#898)

* HelloScript.lua: Correct typos

* Lua docs: fget corresponds to fs.read_file
This commit is contained in:
TophattedWasTaken 2025-03-24 11:08:53 -05:00 committed by GitHub
parent 712df196f1
commit bc84780036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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 |  

View 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..