summaryrefslogtreecommitdiff
path: root/frontend/src/router-hook.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2025-07-01 14:49:48 -0400
committerGitHub <noreply@github.com>2025-07-01 14:49:48 -0400
commit7b8a18d02d8e6b098f3399d015cf22dd04bc561c (patch)
tree7139a04320c70caaaea7a53b77e7b4ff1132ab1a /frontend/src/router-hook.tsx
parentf327c6c792cb6beb1f32f70045e577a542a48070 (diff)
parentcbea1518ed1e88fde34e40a16a0e9c20e954a9f5 (diff)
downloaddecky-loader-7b8a18d02d8e6b098f3399d015cf22dd04bc561c.tar.gz
decky-loader-7b8a18d02d8e6b098f3399d015cf22dd04bc561c.zip
Merge branch 'main' into aa/fix-updater-reload
Diffstat (limited to 'frontend/src/router-hook.tsx')
-rw-r--r--frontend/src/router-hook.tsx10
1 files changed, 3 insertions, 7 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index 9612793a..b3355d76 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -1,4 +1,5 @@
import {
+ EUIMode,
ErrorBoundary,
Patch,
afterPatch,
@@ -31,11 +32,6 @@ declare global {
}
}
-export enum UIMode {
- BigPicture = 4,
- Desktop = 7,
-}
-
const isPatched = Symbol('is patched');
class RouterHook extends Logger {
@@ -76,13 +72,13 @@ class RouterHook extends Logger {
this.error('Failed to find router stack module');
}
- this.modeChangeRegistration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
+ this.modeChangeRegistration = SteamClient.UI.RegisterForUIModeChanged((mode: EUIMode) => {
this.debug(`UI mode changed to ${mode}`);
if (this.patchedModes.has(mode)) return;
this.patchedModes.add(mode);
this.debug(`Patching router for UI mode ${mode}`);
switch (mode) {
- case UIMode.BigPicture:
+ case EUIMode.GamePad:
this.debug('Patching gamepad router');
this.patchGamepadRouter();
break;