PortValhalla/scripts/Windows/Software/osu!/Manage.ps1

13 lines
449 B
PowerShell

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