diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-27 02:07:12 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-27 02:07:18 -0800 |
| commit | a7339001d2e93c3fb2a957ab782f47d46657619a (patch) | |
| tree | ee1b997a20eebe48b0377d8eccabf9abb9ad624a /nomsu.lua | |
| parent | 86c48afb88ef701aa653256c5e2f364cdda1f4f3 (diff) | |
Adding support for windows
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,10 @@ +local clibtype = package.cpath:match("?%.(so)") or package.cpath:match("?%.(dll)") +if clibtype == "dll" then + os.execute("chcp 65001>nul") +end if NOMSU_VERSION and NOMSU_PREFIX then package.path = tostring(NOMSU_PREFIX) .. "/share/nomsu/" .. tostring(NOMSU_VERSION) .. "/?.lua;" .. package.path - package.cpath = tostring(NOMSU_PREFIX) .. "/lib/nomsu/" .. tostring(NOMSU_VERSION) .. "/?.so;" .. package.cpath + package.cpath = tostring(NOMSU_PREFIX) .. "/lib/nomsu/" .. tostring(NOMSU_VERSION) .. "/?." .. tostring(clibtype) .. ";" .. package.cpath end local EXIT_SUCCESS, EXIT_FAILURE = 0, 1 if _VERSION == "Lua 5.1" and not jit then |
