1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 17:30:43 +00:00
OpenDiablo2/main.go

29 lines
621 B
Go
Raw Normal View History

2019-10-24 13:31:59 +00:00
package main
import (
"fmt"
2019-10-24 13:31:59 +00:00
"log"
"github.com/OpenDiablo2/OpenDiablo2/d2app"
2019-10-24 13:31:59 +00:00
)
2019-11-07 03:12:15 +00:00
// GitBranch is set by the CI build process to the name of the branch
//nolint:gochecknoglobals // This is filled in by the build system
var GitBranch string
2019-11-07 03:12:15 +00:00
// GitCommit is set by the CI build process to the commit hash
//nolint:gochecknoglobals // This is filled in by the build system
var GitCommit string
2019-10-24 13:31:59 +00:00
func main() {
log.SetFlags(log.Lshortfile)
log.Println("OpenDiablo2 - Open source Diablo 2 engine")
instance := d2app.Create(GitBranch, GitCommit)
if err := instance.Run(); err != nil {
fmt.Println(err)
return
2020-07-08 13:16:16 +00:00
}
}