From 7dc65e320981e77da1b390887384b24131e518d3 Mon Sep 17 00:00:00 2001 From: laz Date: Wed, 26 Mar 2025 15:59:10 +0100 Subject: [PATCH] fix --- wiki-rtd/docs/wiki_development/functions/steamsync.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 wiki-rtd/docs/wiki_development/functions/steamsync.txt diff --git a/wiki-rtd/docs/wiki_development/functions/steamsync.txt b/wiki-rtd/docs/wiki_development/functions/steamsync.txt new file mode 100644 index 0000000..17a5ff2 --- /dev/null +++ b/wiki-rtd/docs/wiki_development/functions/steamsync.txt @@ -0,0 +1,9 @@ +Assuming this isn't the first time Steam Sync has been run, the process is: +Look through all gamelists and build a full list of all favorites in all systems +Build a JSON object for each favorite, which prepares to make a shortcut in Steam with the command "flatpak run net.retrodeck.retrodeck -s " which leverages the new RetroDECK option to launch a ROM directly. +Write these JSON objects to a new temporary file +Check the new temporary file vs the existing favorites manifest. If different, continue, if the same, nothing has changed and can stop. +If files are different, find out if the original has entries the new one does not (meaning a favorite was removed). If so, build another temporary manifest of only games that were removed from favorites. +Load "removed games" manifest and run SRM to remove only those shortcuts. +Load new favorites list manifest and run SRM to add those shortcuts. +Temporary new favorites list becomes current favorites manifest, all other temp files removed.