Parse more Steam Cloud paths

This commit is contained in:
mtkennerly 2024-04-21 07:23:48 -04:00
parent 1b30a92a90
commit a1a47e883e
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 105 additions and 1 deletions

View file

@ -497,10 +497,14 @@ pub fn parse_root(value: &str) -> Option<&'static str> {
match value.to_lowercase().as_ref() {
"gameinstall" => Some(placeholder::BASE),
"linuxhome" => Some(placeholder::HOME),
"linuxxdgconfighome" => Some(placeholder::XDG_CONFIG),
"linuxxdgdatahome" => Some(placeholder::XDG_DATA),
"macappsupport" => Some("<home>/Library/Application Support"),
"madocuments" => Some("<home>/Documents"),
"macdocuments" => Some("<home>/Documents"),
"machome" => Some(placeholder::HOME),
// TODO: Where does this map on each OS?
// The manifest probably needs a new placeholder for it.
"steamclouddocuments" => None,
"winappdataroaming" => Some(placeholder::WIN_APP_DATA),
"winappdatalocal" => Some(placeholder::WIN_LOCAL_APP_DATA),
"winappdatalocallow" => Some("<home>/AppData/LocalLow"),