13 lines
443 B
PowerShell
13 lines
443 B
PowerShell
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
|
|
$null = New-Module {
|
|
$path = "$env:LOCALAPPDATA/osu!";
|
|
$softwareName = "osu!";
|
|
$genericConfigName = "osu!.User.cfg";
|
|
|
|
function Backup-Osu([Context] $context) {
|
|
$archive = $context.SoftwareArchive($softwareName);
|
|
$context.Backup($path, $archive, @("-i@`"$PSScriptRoot/include.txt`""));
|
|
& 7z rn "$archive" "osu!.$env:USERNAME.cfg" $genericConfigName;
|
|
}
|
|
}
|