STEAM_SYNC: fixing configuration

This commit is contained in:
XargonWan 2024-09-08 10:31:16 +09:00
parent 8395b2c200
commit f103064111
3 changed files with 37 additions and 10 deletions

View file

@ -2,22 +2,20 @@
{
"parserType": "Glob",
"configTitle": "RetroDECK",
"steamDirectory": "",
"steamDirectory": "${steamdirglobal}",
"steamCategory": "RetroDECK",
"romDirectory": "",
"romDirectory": "${romsdirglobal}",
"executableArgs": "",
"executableModifier": "\"${exePath}\"",
"startInDirectory": "",
"titleModifier": "${fuzzyTitle}",
"fetchControllerTemplatesButton": null,
"removeControllersButton": null,
"imageProviders": [
"SteamGridDB"
],
"onlineImageQueries": "${${fuzzyTitle}}",
"imagePool": "${fuzzyTitle}",
"userAccounts": {
"specifiedAccounts": null
"specifiedAccounts": ""
},
"executable": {
"path": "",
@ -25,7 +23,7 @@
"appendArgsToExecutable": true
},
"parserInputs": {
"glob": "${title}@(.sh)"
"glob": "${title}.sh"
},
"titleFromVariable": {
"limitToGroups": "",

View file

@ -0,0 +1,30 @@
{
"fuzzyMatcher": {
"verbose": false,
"filterProviders": true
},
"environmentVariables": {
"steamDirectory": "",
"userAccounts": "${steamlogin}",
"romsDirectory": "",
"retroarchPath": "",
"raCoresDirectory": "",
"localImagesDirectory": ""
},
"previewSettings": {
"retrieveCurrentSteamImages": true,
"deleteDisabledShortcuts": false,
"imageZoomPercentage": 30,
"preload": false
},
"enabledProviders": [
"SteamGridDB"
],
"batchDownloadSize": 50,
"language": "en-US",
"theme": "Deck",
"offlineMode": false,
"navigationWidth": 0,
"clearLogOnTest": false,
"version": 6
}

View file

@ -90,10 +90,9 @@ prepare_component() {
create_dir -d $srm_path
cp -fv "$config/steam-rom-manager/"*.json $srm_path
log i "Updating steamDirectory and romDirectory lines in $srm_path/userConfigurations.json"
jq --arg steamDir "$HOME/.steam/steam" --arg romDir "$rdhome/.sync" \
'.[0].steamDirectory = $steamDir | .[0].romDirectory = $romDir' \
"$srm_path/userConfigurations.json" > tmpfile && mv tmpfile "$srm_path/userConfigurations.json"
log i "Updating steamDirectory and romDirectory lines in $srm_path/userSettings.json"
jq '.environmentVariables.steamDirectory = "'$HOME'/.steam/steam"' $srm_path/userSettings.json" > tmp.json && mv tmp.json $srm_path/userSettings.json"
jq '.environmentVariables.romsDirectory = "'$rdhome'/.sync"' $srm_path/userSettings.json > tmp.json && mv tmp.json $srm_path/userSettings.json
fi
if [[ "$component" =~ ^(retroarch|all)$ ]]; then