perf: 修改了存储类型
This commit is contained in:
parent
4f67007869
commit
8f12dc30cf
|
@ -675,13 +675,9 @@ LoadSettings() {
|
||||||
}
|
}
|
||||||
default_numeric_settings := g_numeric_settings.Clone() ; 保留一份默认数值设置
|
default_numeric_settings := g_numeric_settings.Clone() ; 保留一份默认数值设置
|
||||||
for key, defaultValue in default_numeric_settings {
|
for key, defaultValue in default_numeric_settings {
|
||||||
|
; 不再检查是否为数字,直接读取并赋值
|
||||||
readValue := IniRead("settings.ini", "NumericSettings", key, defaultValue)
|
readValue := IniRead("settings.ini", "NumericSettings", key, defaultValue)
|
||||||
;确保读取的值是数字,如果不是则使用默认值
|
|
||||||
if IsNumber(readValue) {
|
|
||||||
g_numeric_settings[key] := readValue
|
g_numeric_settings[key] := readValue
|
||||||
} else {
|
|
||||||
g_numeric_settings[key] := defaultValue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;tag 改变滑条数据
|
;tag 改变滑条数据
|
||||||
|
|
Loading…
Reference in New Issue