Merge branch 'feat/steam-rom-manager' of https://github.com/RetroDECK/RetroDECK into feat/steam-rom-manager

This commit is contained in:
XargonWan 2024-09-04 21:41:56 +09:00
commit e5ea37f291
4 changed files with 21 additions and 3 deletions

View file

@ -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()

View file

@ -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/"))

View file

@ -0,0 +1,12 @@
{
"exceptionsVersion": 1,
"titles": {
"IGNORE": {
"newTitle": "",
"searchTitle": "",
"commandLineArguments": "",
"exclude": true,
"excludeArtwork": false
}
}
}

View file

@ -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!"