Make custom launcher files a config option

This commit is contained in:
Andrew Gutekanst
2020-02-01 17:40:47 -05:00
parent 1929b8823d
commit eb491093f8
3 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,8 @@
"database": "erupe"
},
"launcher": {
"port": 80
"port": 80,
"UseOriginalLauncherFiles": false
},
"sign": {
"port": 53312

View File

@@ -30,6 +30,7 @@ type Database struct {
// Launcher holds the launcher server config.
type Launcher struct {
Port int
UseOriginalLauncherFiles bool
}
// Sign holds the sign server config.

View File

@@ -71,7 +71,7 @@ func main() {
Logger: logger.Named("launcher"),
ErupeConfig: erupeConfig,
DB: db,
UseOriginalLauncherFiles: false,
UseOriginalLauncherFiles: erupeConfig.Launcher.UseOriginalLauncherFiles,
})
err = launcherServer.Start()
if err != nil {