2
3
mirror da https://github.com/sammy-ette/Hilbish synced 2025-08-10 02:52:03 +00:00

feat: add userDir module

This commit is contained in:
sammyette 2024-07-20 10:53:49 -04:00
parent 56045ed236
commit e335ef5994
Firmato da: sammyette
ID Chiave GPG: 904FC49417B44DCD
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni

4
api.go
Vedi File

@ -81,8 +81,8 @@ func hilbishLoader(mlr *moonlight.Runtime) moonlight.Value {
//util.SetField(rtm, mod, "vimMode", rt.NilValue)
// hilbish.userDir table
//hshuser := userDirLoader(rtm)
//mod.Set(rt.StringValue("userDir"), rt.TableValue(hshuser))
hshuser := userDirLoader()
hshMod.SetField("userDir", moonlight.TableValue(hshuser))
// hilbish.os table
//hshos := hshosLoader(rtm)

1
lua.go
Vedi File

@ -53,6 +53,7 @@ func luaInit() {
// Add more paths that Lua can require from
_, err := l.DoString("package.path = package.path .. " + requirePaths)
if err != nil {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")
}