From bc84780036423e0caa8bc307db3da75b7301fbb1 Mon Sep 17 00:00:00 2001 From: TophattedWasTaken <137208851+TophattedWasTaken@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:08:53 -0500 Subject: [PATCH] Lua examples: Small error corrections (#898) * HelloScript.lua: Correct typos * Lua docs: fget corresponds to fs.read_file --- resources/lua-doc.md | 2 +- resources/sample/HelloScript.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lua-doc.md b/resources/lua-doc.md index a0b81e6..c5a75d1 100644 --- a/resources/lua-doc.md +++ b/resources/lua-doc.md @@ -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 |   diff --git a/resources/sample/HelloScript.lua b/resources/sample/HelloScript.lua index 723bc5c..e8626e7 100644 --- a/resources/sample/HelloScript.lua +++ b/resources/sample/HelloScript.lua @@ -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..