feat(currency_wars): complete systems, settlement Rank SS, damage report, camera and recovery fixes
This commit is contained in:
1 parent
c008243f11
commit
0995055296
78 files changed
+33840
-9525
No files matched your search
@@ -65,6 +65,15 @@ func LoadRuntimeConfig() (RuntimeConfig, error) {
|
||||
path := os.Getenv("GAC_CONFIG")
|
||||
if path == "" {
|
||||
path = "server.json"
|
||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||
for _, prefix := range []string{"..", "../..", "../../.."} {
|
||||
candidate := filepath.Join(prefix, "server.json")
|
||||
if _, err := os.Stat(candidate); err == nil {
|
||||
path = candidate
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var cfg RuntimeConfig
|
||||
for i, filename := range []string{path, filepath.Join(filepath.Dir(path), strings.TrimSuffix(filepath.Base(path), filepath.Ext(path))+".local.json")} {
|
||||
|
||||
Reference in new issue
Block a user