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", "parserType": "Glob",
"configTitle": "RetroDECK", "configTitle": "RetroDECK",
"steamDirectory": "", "steamDirectory": "${steamdirglobal}",
"steamCategory": "RetroDECK", "steamCategory": "RetroDECK",
"romDirectory": "", "romDirectory": "${romsdirglobal}",
"executableArgs": "", "executableArgs": "",
"executableModifier": "\"${exePath}\"", "executableModifier": "\"${exePath}\"",
"startInDirectory": "", "startInDirectory": "",
"titleModifier": "${fuzzyTitle}", "titleModifier": "${fuzzyTitle}",
"fetchControllerTemplatesButton": null,
"removeControllersButton": null,
"imageProviders": [ "imageProviders": [
"SteamGridDB" "SteamGridDB"
], ],
"onlineImageQueries": "${${fuzzyTitle}}", "onlineImageQueries": "${${fuzzyTitle}}",
"imagePool": "${fuzzyTitle}", "imagePool": "${fuzzyTitle}",
"userAccounts": { "userAccounts": {
"specifiedAccounts": null "specifiedAccounts": ""
}, },
"executable": { "executable": {
"path": "", "path": "",
@ -25,7 +23,7 @@
"appendArgsToExecutable": true "appendArgsToExecutable": true
}, },
"parserInputs": { "parserInputs": {
"glob": "${title}@(.sh)" "glob": "${title}.sh"
}, },
"titleFromVariable": { "titleFromVariable": {
"limitToGroups": "", "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 create_dir -d $srm_path
cp -fv "$config/steam-rom-manager/"*.json $srm_path cp -fv "$config/steam-rom-manager/"*.json $srm_path
log i "Updating steamDirectory and romDirectory lines in $srm_path/userConfigurations.json" log i "Updating steamDirectory and romDirectory lines in $srm_path/userSettings.json"
jq --arg steamDir "$HOME/.steam/steam" --arg romDir "$rdhome/.sync" \ jq '.environmentVariables.steamDirectory = "'$HOME'/.steam/steam"' $srm_path/userSettings.json" > tmp.json && mv tmp.json $srm_path/userSettings.json"
'.[0].steamDirectory = $steamDir | .[0].romDirectory = $romDir' \ jq '.environmentVariables.romsDirectory = "'$rdhome'/.sync"' $srm_path/userSettings.json > tmp.json && mv tmp.json $srm_path/userSettings.json
"$srm_path/userConfigurations.json" > tmpfile && mv tmpfile "$srm_path/userConfigurations.json"
fi fi
if [[ "$component" =~ ^(retroarch|all)$ ]]; then if [[ "$component" =~ ^(retroarch|all)$ ]]; then