mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
FINIT: add RetroDECK to Steam (untested)
This commit is contained in:
parent
cdaebd5d8c
commit
2e906b60a3
4
config/steam-rom-manager/manifests/RetroDECK.json
Normal file
4
config/steam-rom-manager/manifests/RetroDECK.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"title": "RetroDECK",
|
||||
"target": "flatpak run net.retrodeck.retrodeck"
|
||||
}
|
|
@ -128,5 +128,136 @@
|
|||
},
|
||||
"parserId": "1725539138664815",
|
||||
"version": 25
|
||||
},
|
||||
{
|
||||
"parserType": "Manual",
|
||||
"configTitle": "RetroDECK Launcher",
|
||||
"steamDirectory": "${steamdirglobal}",
|
||||
"romDirectory": "${romsdirglobal}",
|
||||
"steamCategories": [
|
||||
"RetroDECK"
|
||||
],
|
||||
"executableArgs": "",
|
||||
"executableModifier": "",
|
||||
"startInDirectory": "",
|
||||
"titleModifier": "",
|
||||
"fetchControllerTemplatesButton": null,
|
||||
"removeControllersButton": null,
|
||||
"steamInputEnabled": "2",
|
||||
"imageProviders": [
|
||||
"sgdb",
|
||||
"steamCDN"
|
||||
],
|
||||
"onlineImageQueries": [
|
||||
"${fuzzyTitle}"
|
||||
],
|
||||
"imagePool": "${fuzzyTitle}",
|
||||
"drmProtect": false,
|
||||
"userAccounts": {
|
||||
"specifiedAccounts": [
|
||||
""
|
||||
]
|
||||
},
|
||||
"parserInputs": {
|
||||
"manualManifests": "/var/config/steam-rom-manager/manifests"
|
||||
},
|
||||
"executable": {
|
||||
"path": "",
|
||||
"shortcutPassthrough": false,
|
||||
"appendArgsToExecutable": false
|
||||
},
|
||||
"titleFromVariable": {
|
||||
"limitToGroups": [],
|
||||
"caseInsensitiveVariables": false,
|
||||
"skipFileIfVariableWasNotFound": false
|
||||
},
|
||||
"fuzzyMatch": {
|
||||
"replaceDiacritics": true,
|
||||
"removeCharacters": true,
|
||||
"removeBrackets": true
|
||||
},
|
||||
"controllers": {
|
||||
"ps4": {
|
||||
"title": "RetroDECK: DualShock 4 v.1b",
|
||||
"mappingId": "RetroDECK_controller_ps4_dualshock4_simple.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"ps5": {
|
||||
"title": "RetroDECK: DualSense v.1b",
|
||||
"mappingId": "RetroDECK_controller_ps5_dualsense_simple.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"ps5_edge": null,
|
||||
"xbox360": {
|
||||
"title": "RetroDECK: Xbox 360 v.1b",
|
||||
"mappingId": "RetroDECK_controller_xbox360_simple.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"xboxone": {
|
||||
"title": "RetroDECK: Xbox Wireless v.1b",
|
||||
"mappingId": "RetroDECK_controller_xboxone_simple.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"xboxelite": null,
|
||||
"switch_joycon_left": {
|
||||
"title": "Controller",
|
||||
"mappingId": "controller_switch_joycon_left_gamepad_joystick.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"switch_joycon_right": {
|
||||
"title": "Controller",
|
||||
"mappingId": "controller_switch_joycon_right_gamepad_joystick.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"switch_pro": {
|
||||
"title": "RetroDECK: Switch Pro v.1b",
|
||||
"mappingId": "RetroDECK_controller_switch_pro_simple.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"neptune": {
|
||||
"title": "RetroDECK: Steam Deck - Neptune v.1.1b FULL",
|
||||
"mappingId": "RetroDECK_controller_steamdeck_neptune_full.vdf",
|
||||
"profileType": "template"
|
||||
},
|
||||
"steamcontroller_gordon": {
|
||||
"title": "RetroDECK: Steam Controller - Gordon v.1b",
|
||||
"mappingId": "RetroDECK_controller_steam_controller_gordon_simple.vdf",
|
||||
"profileType": "template"
|
||||
}
|
||||
},
|
||||
"imageProviderAPIs": {
|
||||
"sgdb": {
|
||||
"nsfw": false,
|
||||
"humor": false,
|
||||
"styles": [],
|
||||
"stylesHero": [],
|
||||
"stylesLogo": [],
|
||||
"stylesIcon": [],
|
||||
"imageMotionTypes": [
|
||||
"static"
|
||||
],
|
||||
"sizes": [],
|
||||
"sizesHero": [],
|
||||
"sizesTall": null,
|
||||
"sizesIcon": []
|
||||
}
|
||||
},
|
||||
"defaultImage": {
|
||||
"tall": null,
|
||||
"long": null,
|
||||
"hero": null,
|
||||
"logo": null,
|
||||
"icon": null
|
||||
},
|
||||
"localImages": {
|
||||
"tall": null,
|
||||
"long": null,
|
||||
"hero": null,
|
||||
"logo": null,
|
||||
"icon": null
|
||||
},
|
||||
"parserId": "173908444383456337",
|
||||
"disabled": false,
|
||||
"version": 25
|
||||
}
|
||||
]
|
||||
]
|
|
@ -521,6 +521,14 @@ finit() {
|
|||
--title "RetroDECK Finishing Initialization" \
|
||||
--text="RetroDECK is finishing the initial setup process, please wait."
|
||||
|
||||
rd_zenity --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --cancel-label="No" --ok-label "Yes" \
|
||||
--text="Do you want to add RetroDECK to Steam?"
|
||||
if [ $? == 0 ]; then
|
||||
steam-rom-manager enable --names "RetroDECK Launcher"
|
||||
steam-rom-manager add
|
||||
rd_zenity --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="RetroDECK has been added to Steam."
|
||||
fi
|
||||
|
||||
create_lock
|
||||
|
||||
# Inform the user where to put the ROMs and BIOS files
|
||||
|
|
|
@ -123,9 +123,9 @@ prepare_component() {
|
|||
log i "-----------------------------"
|
||||
|
||||
local srm_userdata="/var/config/steam-rom-manager/userData"
|
||||
create_dir -d "/var/config/steam-rom-manager"
|
||||
create_dir -d "$srm_userdata"
|
||||
cp -fv "$config/steam-rom-manager/"*.json $srm_userdata
|
||||
cp -fv "$config/steam-rom-manager/"*.json "$srm_userdata"
|
||||
cp -fv "$config/steam-rom-manager/manifests" "$srm_userdata"
|
||||
|
||||
log i "Updating steamDirectory and romDirectory lines in $srm_userdata/userSettings.json"
|
||||
jq '.environmentVariables.steamDirectory = "'$HOME'/.steam/steam"' "$srm_userdata/userSettings.json" > "$srm_userdata/tmp.json" && mv -f "$srm_userdata/tmp.json" "$srm_userdata/userSettings.json"
|
||||
|
|
|
@ -100,6 +100,7 @@ add_to_steam() {
|
|||
remove_from_steam
|
||||
else
|
||||
log d "Updating game list"
|
||||
steam-rom-manager enable --names "RetroDECK"
|
||||
steam-rom-manager add
|
||||
fi
|
||||
}
|
||||
|
@ -110,7 +111,10 @@ remove_from_steam() {
|
|||
log d "Creating dummy game"
|
||||
cat "" > "$steamsync_folder/CUL0.sh"
|
||||
log d "Cleaning the shortcut"
|
||||
steam-rom-manager enable --names "RetroDECK"
|
||||
steam-rom-manager disable --names "RetroDECK Launcher"
|
||||
steam-rom-manager remove
|
||||
log d "Removing dummy game"
|
||||
rm "$steamsync_folder/CUL0.sh"
|
||||
steam-rom-manager enable --names "RetroDECK Launcher"
|
||||
}
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
<description>
|
||||
<p>New Additions:</p>
|
||||
<ul>
|
||||
<li>INITIAL SETUP: prompts to add RetroDECK to Steam</li>
|
||||
<li>CONFIGURATOR: reset components menu simplified and allowed multiple choices</li>
|
||||
<li>CONFIGURATOR: refacotred open component menu</li>
|
||||
<li>New CLI argument `--set` to set presets, call retrodeck with `--set help` for more information</li>
|
||||
|
|
Loading…
Reference in a new issue