Skip to content

Commit

Permalink
daggerfallunity: Persist Mods and GameFiles (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
mundifex authored Jul 4, 2024
1 parent bfe61ab commit 6f3c66c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bucket/daggerfallunity.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,25 @@
"pre_install": [
"New-Item -ItemType File \"$dir\\Portable.txt\" | Out-Null"
],
"post_install": [
"$Subdirs = @('Mods', 'GameFiles')",
"ForEach($DirName in $Subdirs) {",
" if (Test-Path \"$dir\\DaggerfallUnity_Data\\StreamingAssets\\$DirName.original\") {",
" Copy-Item \"$dir\\DaggerfallUnity_Data\\StreamingAssets\\$DirName.original\\*\" \"$persist_dir\\DaggerfallUnity_Data\\StreamingAssets\\$DirName\" -Force -Recurse",
" Remove-Item \"$dir\\DaggerfallUnity_Data\\StreamingAssets\\$DirName.original\" -Force -Recurse | Out-Null",
" }",
"}"
],
"shortcuts": [
[
"DaggerfallUnity.exe",
"Daggerfall Unity"
]
],
"persist": [
"PortableAppdata"
"PortableAppdata",
"DaggerfallUnity_Data\\StreamingAssets\\GameFiles",
"DaggerfallUnity_Data\\StreamingAssets\\Mods"
],
"checkver": "github",
"autoupdate": {
Expand Down

0 comments on commit 6f3c66c

Please sign in to comment.