mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Merge branch 'feat/steam-rom-manager' of https://github.com/RetroDECK/RetroDECK into feat/steam-rom-manager
This commit is contained in:
commit
e5ea37f291
|
@ -3,14 +3,12 @@ import shutil
|
|||
import re
|
||||
|
||||
def resetfun(rdhome):
|
||||
if not os.path.exists(rdhome+"/.sync/"):
|
||||
os.makedirs(rdhome+"/.sync/")
|
||||
|
||||
os.system("/app/bin/zypak-wrapper /app/srm/steam-rom-manager list")
|
||||
srm_path=os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/steam-rom-manager/userData/userConfigurations.json")
|
||||
if not os.path.isfile(srm_path):
|
||||
print("Steam ROM Manager configuration not initialized! Initializing now.")
|
||||
shutil.copyfile("/app/libexec/steam-sync/userConfigurations.json", srm_path)
|
||||
shutil.copyfile("/app/libexec/steam-sync/userExceptions.json", srm_path)
|
||||
|
||||
with open(srm_path,"r") as f:
|
||||
data=f.read()
|
||||
|
|
|
@ -49,6 +49,7 @@ command_list_default={
|
|||
"dreamcast": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/flycast_libretro.so",
|
||||
"easyrpg": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/easyrpg_libretro.so",
|
||||
"famicom": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/mesen_libretro.so",
|
||||
"flash": "TODO: I have to catch how it works", #TODO
|
||||
"fba": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/fbalpha2012_libretro.so",
|
||||
"fbneo": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/fbneo_libretro.so",
|
||||
"fds": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/mesen_libretro.so",
|
||||
|
@ -394,6 +395,9 @@ def start_config():
|
|||
print("Steam ROM Manager configuration not initialized! Initializing now.")
|
||||
resetfun(rdhome)
|
||||
|
||||
if not os.path.exists(rdhome+"/.sync/"):
|
||||
os.makedirs(rdhome+"/.sync/")
|
||||
|
||||
if __name__=="__main__":
|
||||
start_config()
|
||||
addToSteam(os.listdir(rdhome+"/ES-DE/gamelists/"))
|
||||
|
|
12
functions/steam-sync/userExceptions.json
Normal file
12
functions/steam-sync/userExceptions.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"exceptionsVersion": 1,
|
||||
"titles": {
|
||||
"IGNORE": {
|
||||
"newTitle": "",
|
||||
"searchTitle": "",
|
||||
"commandLineArguments": "",
|
||||
"exclude": true,
|
||||
"excludeArtwork": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -156,6 +156,10 @@ configurator_welcome_dialog() {
|
|||
configurator_about_retrodeck_dialog
|
||||
;;
|
||||
|
||||
"Sync with Steam" )
|
||||
configurator_add_steam
|
||||
;;
|
||||
|
||||
"Developer Options" )
|
||||
log i "Configurator: opening \"$choice\" menu"
|
||||
configurator_generic_dialog "RetroDECK Configurator - Developer Options" "The following features and options are potentially VERY DANGEROUS for your RetroDECK install!\n\nThey should be considered the bleeding-edge of upcoming RetroDECK features, and never used when you have important saves/states/roms that are not backed up!\n\nYOU HAVE BEEN WARNED!"
|
||||
|
|
Loading…
Reference in a new issue