mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 08:55:31 +01:00
Make custom launcher files a config option
This commit is contained in:
@@ -9,7 +9,8 @@
|
|||||||
"database": "erupe"
|
"database": "erupe"
|
||||||
},
|
},
|
||||||
"launcher": {
|
"launcher": {
|
||||||
"port": 80
|
"port": 80,
|
||||||
|
"UseOriginalLauncherFiles": false
|
||||||
},
|
},
|
||||||
"sign": {
|
"sign": {
|
||||||
"port": 53312
|
"port": 53312
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ type Database struct {
|
|||||||
// Launcher holds the launcher server config.
|
// Launcher holds the launcher server config.
|
||||||
type Launcher struct {
|
type Launcher struct {
|
||||||
Port int
|
Port int
|
||||||
|
UseOriginalLauncherFiles bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign holds the sign server config.
|
// Sign holds the sign server config.
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -71,7 +71,7 @@ func main() {
|
|||||||
Logger: logger.Named("launcher"),
|
Logger: logger.Named("launcher"),
|
||||||
ErupeConfig: erupeConfig,
|
ErupeConfig: erupeConfig,
|
||||||
DB: db,
|
DB: db,
|
||||||
UseOriginalLauncherFiles: false,
|
UseOriginalLauncherFiles: erupeConfig.Launcher.UseOriginalLauncherFiles,
|
||||||
})
|
})
|
||||||
err = launcherServer.Start()
|
err = launcherServer.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user