From e82a55e9582fbd6d84f3f4510b04480c35e41fe4 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 26 Oct 2026 23:50:59 -0400 Subject: feat: initial VERY VERY incomplete steam frame support --- backend/decky_loader/injector.py | 4 ++-- backend/decky_loader/utilities.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/decky_loader/injector.py b/backend/decky_loader/injector.py index ded58193..26d8f8fe 100644 --- a/backend/decky_loader/injector.py +++ b/backend/decky_loader/injector.py @@ -168,7 +168,7 @@ class Tab: # Page finishes loading when breakpoint hits for _ in range(20): - # this works around 1/5 of the time, so just send it 8 times. + # this works around 1/5 of the time, so just send it 20 times. # the js accounts for being injected multiple times allowing only one instance to run at a time anyway await self._send_devtools_cmd({ "method": "Runtime.evaluate", @@ -435,4 +435,4 @@ async def close_old_tabs(): if not t.title or (t.title not in SHARED_CTX_NAMES and any(url in t.url for url in CLOSEABLE_URLS) and not any(url in t.url for url in DO_NOT_CLOSE_URLS)): logger.debug("Closing tab: " + getattr(t, "title", "Untitled")) await t.close() - await sleep(0.5) + # await sleep(0.5) diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index 99a1b019..7f1ac09d 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -442,7 +442,7 @@ class Utilities: enumerable: true, configurable: true, get: function() { - return (GamepadNavTree?.m_context?.m_controller || FocusNavController)?.m_ActiveContext?.ActiveWindow || window; + return (window?.GamepadNavTree?.m_context?.m_controller || window?.FocusNavController)?.m_ActiveContext?.ActiveWindow || window; } }); """ + await res.text() + "\n}" -- cgit v1.2.3 From e62485dcece39cd0d2b272f401945d2274c4fc90 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Tue, 27 Oct 2026 11:56:28 -0400 Subject: rework PR handling slightly --- backend/decky_loader/updater.py | 2 ++ backend/pyinstaller.spec | 3 +++ 2 files changed, 5 insertions(+) (limited to 'backend') diff --git a/backend/decky_loader/updater.py b/backend/decky_loader/updater.py index d018b4fe..cefa6b11 100644 --- a/backend/decky_loader/updater.py +++ b/backend/decky_loader/updater.py @@ -44,6 +44,7 @@ class Updater: self.isSupported: bool = ON_LINUX self.repo = getenv('DECKY_REPO', 'SteamDeckHomebrew/decky-loader') self.git_branch = getenv('DECKY_BRANCH', 'dirty') + self.git_pr = getenv('DECKY_PR', None) try: self.currentBranch = self.get_branch(self.context.settings) @@ -98,6 +99,7 @@ class Updater: "current": self.localVer, "repo": self.repo, "gitBranch": self.git_branch, + "gitPR": self.git_pr, "remote": self.remoteVer, "all": self.allRemoteVers, "updatable": self.localVer != "unknown" and self.localVer != "dev", diff --git a/backend/pyinstaller.spec b/backend/pyinstaller.spec index 3ef888f5..005d3319 100644 --- a/backend/pyinstaller.spec +++ b/backend/pyinstaller.spec @@ -7,6 +7,7 @@ noconsole_str = os.getenv('DECKY_NOCONSOLE', '0') noconsole = bool(noconsole_str) repo = os.getenv('DECKY_REPO', 'SteamDeckHomebrew/decky-loader') branch = os.getenv('DECKY_BRANCH', 'main') +pr = os.getenv('DECKY_PR', None) with open('build_config.py', 'w') as f: f.write(f""" import os @@ -15,6 +16,8 @@ os.environ['DECKY_PACKAGED_BUILD'] = '1' # Build info os.environ['DECKY_REPO'] = {repr(repo)} os.environ['DECKY_BRANCH'] = {repr(branch)} +if pr is not None: + os.environ['DECKY_PR'] = {repr(pr)} # Windows-specific os.environ['DECKY_NOCONSOLE'] = {repr(noconsole_str)} -- cgit v1.2.3 From f8682eb26fb23c9bed3c4a509d2b90eb582805f3 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Tue, 27 Oct 2026 12:10:23 -0400 Subject: Fix oops --- backend/pyinstaller.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/pyinstaller.spec b/backend/pyinstaller.spec index 005d3319..ab27d1ea 100644 --- a/backend/pyinstaller.spec +++ b/backend/pyinstaller.spec @@ -16,7 +16,7 @@ os.environ['DECKY_PACKAGED_BUILD'] = '1' # Build info os.environ['DECKY_REPO'] = {repr(repo)} os.environ['DECKY_BRANCH'] = {repr(branch)} -if pr is not None: +if {repr(pr)} is not None: os.environ['DECKY_PR'] = {repr(pr)} # Windows-specific -- cgit v1.2.3