From eb491093f87906dce115cfab433aa4e6ceffdf7b Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Sat, 1 Feb 2020 17:40:47 -0500 Subject: [PATCH] Make custom launcher files a config option --- config.json | 3 ++- config/config.go | 1 + main.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 6dafbae4c..c0ace65dc 100644 --- a/config.json +++ b/config.json @@ -9,7 +9,8 @@ "database": "erupe" }, "launcher": { - "port": 80 + "port": 80, + "UseOriginalLauncherFiles": false }, "sign": { "port": 53312 diff --git a/config/config.go b/config/config.go index 5886386c6..94dbb78e4 100644 --- a/config/config.go +++ b/config/config.go @@ -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. diff --git a/main.go b/main.go index 296dd248e..3869b6489 100644 --- a/main.go +++ b/main.go @@ -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 {