Files
ordoor/internal/wh40k/wh40k.go
2019-12-31 01:55:58 +00:00

31 lines
492 B
Go

// package wh40k implements the full WH40K.EXE functionality, and is used from
// cmd/wh40k/main.go
//
// Entrypoint is Run()
package wh40k
import (
"fmt"
"code.ur.gs/lupine/ordoor/internal/config"
)
type WH40K struct {
Config *config.Config
}
func Run(configFile string) error {
cfg, err := config.Load(configFile)
if err != nil {
return fmt.Errorf("Couldn't load config file: %v", err)
}
wh40k := &WH40K{
Config: cfg,
}
wh40k.PlayUnskippableVideo("LOGOS")
return nil
}