diff options
Diffstat (limited to '3rdparty/lua/src/modules/lua-winreg/test/test_1.lua')
-rw-r--r-- | 3rdparty/lua/src/modules/lua-winreg/test/test_1.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/3rdparty/lua/src/modules/lua-winreg/test/test_1.lua b/3rdparty/lua/src/modules/lua-winreg/test/test_1.lua index 1dc0170..cfcd7aa 100644 --- a/3rdparty/lua/src/modules/lua-winreg/test/test_1.lua +++ b/3rdparty/lua/src/modules/lua-winreg/test/test_1.lua @@ -1,10 +1,10 @@ -local winreg = require"winreg"
-
--- prints all the special folders
-hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]]
-
-skey = hkey:openkey([[Explorer\Shell Folders]])
-for name in skey:enumvalue() do
- print("\nname: " .. name
- .. "\npath: " .. skey:getvalue(name))
-end
+local winreg = require"winreg" + +-- prints all the special folders +hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]] + +skey = hkey:openkey([[Explorer\Shell Folders]]) +for name in skey:enumvalue() do + print("\nname: " .. name + .. "\npath: " .. skey:getvalue(name)) +end |