Normalize Steam Cloud paths more consistently
This commit is contained in:
parent
c087e48a1b
commit
e10c8ac1e5
2 changed files with 7 additions and 12 deletions
|
@ -251,11 +251,11 @@ impl Game {
|
|||
}
|
||||
|
||||
fn add_file_constraint(&mut self, path: String, constraint: GameFileConstraint) {
|
||||
self.files
|
||||
.entry(path.replace('\\', "/"))
|
||||
.or_default()
|
||||
.when
|
||||
.insert(constraint);
|
||||
let path = path
|
||||
.replace('\\', "/")
|
||||
.replace("{64BitSteamID}", placeholder::STORE_USER_ID)
|
||||
.replace("{Steam3AccountID}", placeholder::STORE_USER_ID);
|
||||
self.files.entry(path).or_default().when.insert(constraint);
|
||||
}
|
||||
|
||||
pub fn integrate_steam(&mut self, cache: &SteamCacheEntry) {
|
||||
|
@ -383,11 +383,6 @@ impl Game {
|
|||
path = path.replace(&transform.find, &transform.replace);
|
||||
}
|
||||
|
||||
path = path
|
||||
.replace('\\', "/")
|
||||
.replace("{64BitSteamID}", placeholder::STORE_USER_ID)
|
||||
.replace("{Steam3AccountID}", placeholder::STORE_USER_ID);
|
||||
|
||||
self.add_file_constraint(path, constraint.clone());
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue