clean up config.go

This commit is contained in:
wish
2023-08-20 22:19:16 +10:00
parent b7903f4e7a
commit a9fabcab23

View File

@@ -258,8 +258,8 @@ func LoadConfig() (*Config, error) {
viper.AddConfigPath(".")
viper.SetDefault("DevModeOptions.SaveDumps", SaveDumpOptions{
Enabled: false,
OutputDir: "savedata",
Enabled: true,
OutputDir: "save-backups",
})
err := viper.ReadInConfig()
@@ -281,7 +281,7 @@ func LoadConfig() (*Config, error) {
if strings.ToUpper(c.ClientMode) == versionStrings[i] {
c.RealClientMode = Mode(i + 1)
c.ClientMode = strings.ToUpper(c.ClientMode)
if c.RealClientMode < Z1 {
if c.RealClientMode <= G101 {
c.ClientMode += " (Debug only)"
}
}