diff --git a/scripts/Windows/Software/osu!/Manage.ps1 b/scripts/Windows/Software/osu!/Manage.ps1 new file mode 100644 index 00000000..f158db92 --- /dev/null +++ b/scripts/Windows/Software/osu!/Manage.ps1 @@ -0,0 +1,10 @@ +. "$PSScriptRoot/../../Scripts/Context.ps1"; +$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; +} diff --git a/scripts/Windows/Software/osu!/include.txt b/scripts/Windows/Software/osu!/include.txt new file mode 100644 index 00000000..ed6687aa --- /dev/null +++ b/scripts/Windows/Software/osu!/include.txt @@ -0,0 +1,3 @@ +Skins +Songs +osu!.*.cfg