fix: sync current handlers, repair relic data and restore visible launcher consoles
This commit is contained in:
1 parent
163d4433e6
commit
74f3c4411b
46 files changed
+4599
-1402
No files matched your search
+14
-6
@@ -2,23 +2,31 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"gac-hkrpg-go/internal/common"
|
||||
"gac-hkrpg-go/internal/gameserver"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cfg, err := common.LoadRuntimeConfig()
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println("============================================================")
|
||||
fmt.Println(" [GaC hkrpg GO] Gameserver (4.6.51) - ONLINE")
|
||||
fmt.Println(" Listening on UDP port 23301 (KCP Gateway)")
|
||||
fmt.Printf(" [GaC hkrpg GO] Gameserver (Client %s)\n", cfg.ClientVersion)
|
||||
fmt.Printf(" Listening on UDP %s:%d (KCP Gateway)\n", cfg.GameHost, cfg.GamePort)
|
||||
fmt.Println(" Ready for StarRail client connection...")
|
||||
fmt.Println("============================================================")
|
||||
|
||||
gw, err := gameserver.NewGateway("0.0.0.0", 23301)
|
||||
gw, err := gameserver.NewGateway(cfg.GameHost, cfg.GamePort)
|
||||
if err != nil {
|
||||
fmt.Println("failed to bind gateway:", err)
|
||||
return
|
||||
fmt.Fprintln(os.Stderr, "failed to bind gateway:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if err := gw.Listen(); err != nil {
|
||||
fmt.Println("gateway error:", err)
|
||||
fmt.Fprintln(os.Stderr, "gateway error:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user