réplica de
https://github.com/Hilbis/Hilbish
sincronizado 2025-07-14 14:52:02 +00:00
"xdg" is basically a linux specific thing and it acted linux specific also. so replace that with a more portable and general "userDir" table config is for the user's config directory and also defaults to xdg vars on linux. data is a directory to store data, mostly for scripts. on other oses beside linux, it is just the config directory for now
15 linhas
498 B
Go
15 linhas
498 B
Go
// +build windows
|
|
|
|
package main
|
|
|
|
// String vars that are free to be changed at compile time
|
|
var (
|
|
requirePaths = commonRequirePaths + `.. ';'
|
|
.. hilbish.user.config .. '\\Hilbish\\libs\\?\\init.lua;'
|
|
.. hilbish.user.config .. '\\Hilbish\\libs\\?\\?.lua;'
|
|
.. hilbish.user.config .. '\\Hilbish\\libs\\?.lua;'`
|
|
dataDir = "~\\Appdata\\Roaming\\Hilbish" // ~ and \ gonna cry?
|
|
preloadPath = dataDir + "\\preload.lua"
|
|
sampleConfPath = dataDir + "\\hilbishrc.lua" // Path to default/sample config
|
|
)
|