Windows服务运行npc时读取程序目录下的config文件

This commit is contained in:
xiexiao
2020-08-22 13:14:34 +08:00
parent 54743588bb
commit d43cbde1f6
2 changed files with 12 additions and 1 deletions

View File

@@ -239,7 +239,7 @@ func run() {
}()
} else {
if *configPath == "" {
*configPath = "conf/npc.conf"
*configPath = common.GetConfigPath()
}
go client.StartFromFile(*configPath)
}