fully self-contained

paths are pretty janky, but it works. Also, [files]/lang_files now must
be the path to a directory CONTAINING a "lang/" directory. I'll work
around this at a later date.
This commit is contained in:
Harvey Tindall
2021-02-12 14:28:09 +00:00
parent 0330540f87
commit 815bdc35ac
8 changed files with 43 additions and 65 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ var emailEnabled = false
func (app *appContext) GetPath(sect, key string) (fs.FS, string) {
val := app.config.Section(sect).Key(key).MustString("")
if strings.HasPrefix(val, "jfa-go:") {
return app.localFS, strings.TrimPrefix(val, "jfa-go:")
return localFS, "build/data/" + strings.TrimPrefix(val, "jfa-go:")
}
return app.systemFS, val
}