mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
STEAM_SYNC: fixing configuration
This commit is contained in:
parent
8395b2c200
commit
f103064111
|
@ -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": "",
|
||||
|
|
30
config/steam-rom-manager/userSettings.json
Normal file
30
config/steam-rom-manager/userSettings.json
Normal 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
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue