Documentation
¶
Overview ¶
Package winebackup holds the backup policy for game saves inside Wine and Proton prefixes, shared by every Linux platform that runs Windows games.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SaveExclusions = []platforms.BackupPattern{
{Glob: "*/Application Data/**"},
{Glob: "*/Cookies/**"},
{Glob: "*/Local Settings/**"},
{Glob: "*/My Documents/**"},
{Glob: "*/NetHood/**"},
{Glob: "*/PrintHood/**"},
{Glob: "*/Recent/**"},
{Glob: "*/SendTo/**"},
{Glob: "*/Start Menu/**"},
{Glob: "*/Templates/**"},
{Glob: "*/AppData/Local/Battle.net/**"},
{Glob: "*/AppData/Local/Temp/**"},
{Glob: "*/AppData/Local/D3DSCache/**"},
{Glob: "*/AppData/Local/NVIDIA/**"},
{Glob: "*/AppData/Local/AMD/**"},
{Glob: "*.dxvk.bin"},
{Glob: "*.dxvk.lut"},
{Glob: "CachedData.db"},
{Contains: "internet cache/"},
{Contains: "cache/"},
{Contains: "caches/"},
{Contains: "crashdumps/"},
{Contains: "crashes/"},
{Contains: "logs/"},
{Contains: "telemetry/"},
}
SaveExclusions drops Wine's legacy compatibility links and the caches, logs and launcher data that share the user save folders.
var UserSavePatterns = []platforms.BackupPattern{
{Glob: "*/Documents/**"},
{Glob: "*/Saved Games/**"},
{Glob: "*/AppData/Roaming/**"},
{Glob: "*/AppData/LocalLow/**"},
{Glob: "*/AppData/Local/**"},
}
UserSavePatterns matches the per-user folders Windows games write saves to, relative to a prefix's drive_c/users directory.
Functions ¶
func PrefixPatterns ¶
func PrefixPatterns(prefix string, patterns []platforms.BackupPattern) []platforms.BackupPattern
PrefixPatterns roots path globs at prefix so a definition above the users directory matches the same files. Basename globs and substring patterns already match at any depth and pass through unchanged.
Types ¶
This section is empty.