@@ -198,40 +198,35 @@ function generateGameLists_downloadData {
198
198
}
199
199
200
200
function generateGameLists_downloadAssets {
201
- $folder = " $storagePath /retrolibrary/data "
201
+
202
202
$accountFolder = Get-ChildItem " $steamInstallPath /userdata" - Directory | Sort-Object LastWriteTime - Descending | Select-Object - First 1
203
203
$accountFolder = $accountFolder.FullName
204
- $destFolder = " $accountFolder /config/grid/retrolibrary/data"
204
+ $folder = " $storagePath /retrolibrary/assets"
205
+ $destFolder = " $accountFolder /config/grid/retrolibrary/assets"
205
206
206
207
$folderDefault = " $storagePath \retrolibrary\assets\default"
207
208
$folderBezels = " $storagePath \retrolibrary\assets\bezels"
208
209
$folderWii = " $storagePath \retrolibrary\assets\wii"
209
210
210
211
New-Item - ItemType Directory - Force - Path $folder | Out-Null
211
- New-Item - ItemType SymbolicLink - Path $destFolder - Target $folder - Force | Out-Null
212
+ createSaveLink $destFolder $folder
212
213
213
214
if (-not (Test-Path - Path $folderDefault )) {
214
215
Write-Output " Downloading Assets" | Set-Content - Path $MSG
215
- New-Item - ItemType Directory - Force - Path $folder | Out-Null
216
- createSaveLink $destFolder $folder
217
216
download " https://artwork.emudeck.com/assets/default.zip" " default.zip"
218
217
moveFromTo " $temp /default" " $storagePath \retrolibrary\assets"
219
218
Write-Output " Assets Downloaded" | Set-Content - Path $MSG
220
219
}
221
220
222
221
if (-not (Test-Path - Path $folderBezels )) {
223
222
Write-Output " Downloading Bezels" | Set-Content - Path $MSG
224
- New-Item - ItemType Directory - Force - Path $folder | Out-Null
225
- createSaveLink $destFolder $folder
226
223
download " https://artwork.emudeck.com/assets/bezels.zip" " bezels.zip"
227
224
moveFromTo " $temp /bezels" " $storagePath \retrolibrary\assets"
228
225
Write-Output " Bezels Downloaded" | Set-Content - Path $MSG
229
226
}
230
227
231
228
if (-not (Test-Path - Path $folderWii )) {
232
229
Write-Output " Downloading Wii Assets" | Set-Content - Path $MSG
233
- New-Item - ItemType Directory - Force - Path $folder | Out-Null
234
- createSaveLink $destFolder $folder
235
230
download " https://artwork.emudeck.com/assets/wii.zip" " wii.zip"
236
231
moveFromTo " $temp /wii" " $storagePath \retrolibrary\assets"
237
232
Write-Output " Wii Assets Downloaded" | Set-Content - Path $MSG
0 commit comments