[fix] some vconfig not applied -> stable release
This commit is contained in:
@@ -480,7 +480,7 @@ pub fn set_cs2_video(file_path: &str, data: VideoConfig) -> Result<()> {
|
||||
let file_content = fs::read_to_string(file_path)?;
|
||||
|
||||
// 定义正则表达式匹配模式
|
||||
let re = Regex::new(r#""(setting\.\w+)"\s+"\d+""#).unwrap();
|
||||
let re = Regex::new(r#""(setting\.\w+)"\s+"-?\d+""#).unwrap();
|
||||
|
||||
// 替换字段值
|
||||
let updated_content = re.replace_all(&file_content, |caps: ®ex::Captures| {
|
||||
|
||||
Reference in New Issue
Block a user