Intial webserver runtime

This commit is contained in:
2021-01-29 23:19:27 -05:00
parent f17f3d160c
commit 05ad9a50c3
8 changed files with 240 additions and 30 deletions

View File

@ -16,6 +16,7 @@ var LoadedSkinstores []datastore.Skinstore = []datastore.Skinstore{}
func LoadSkinstores(plugins []*plugin.Plugin) error {
for _, plugin := range plugins {
log.Debug("Looking for skinstore in plugin...")
symSkinstore, err := plugin.Lookup("SkinstoreModule")
if err != nil {
@ -33,6 +34,7 @@ func LoadSkinstores(plugins []*plugin.Plugin) error {
return err
}
log.Info("Loaded new skinstore!")
LoadedSkinstores = append(LoadedSkinstores, skinstore)
}
return nil