summaryrefslogtreecommitdiff
path: root/frontend/src/index.ts
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-11-21 21:45:27 -0500
committerAAGaming <aagaming@riseup.net>2026-11-21 21:45:27 -0500
commita2bdcbeb01eb7bf315fb0d89e919934a927921ab (patch)
treef72bd5ab6abe22a30262b55ea81fa07efcb58e9e /frontend/src/index.ts
parentfc0355f55d8d36826466fc304d6ecb254d4b7ca1 (diff)
downloaddecky-loader-a2bdcbeb01eb7bf315fb0d89e919934a927921ab.tar.gz
decky-loader-a2bdcbeb01eb7bf315fb0d89e919934a927921ab.zip
feat(vr): add frame stuff (ALPHA)
Diffstat (limited to 'frontend/src/index.ts')
-rw-r--r--frontend/src/index.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts
index 162e8f36..f21c4802 100644
--- a/frontend/src/index.ts
+++ b/frontend/src/index.ts
@@ -2,9 +2,9 @@
interface Window {
_deckyModuleResolverInternals: {
- scopes: Map<string, Record<string, any>>,
- scopedObjects: Map<number, any>
- }
+ scopes: Map<string, Record<string, any>>;
+ scopedObjects: Map<number, any>;
+ };
}
interface SteamAppInitialization {
@@ -23,7 +23,7 @@ const isSteamAppInitialized = () => {
console.debug('[Decky:Boot] Authenticating with Decky backend...');
window.deckyAuthToken = await fetch('http://127.0.0.1:1337/auth/token').then((r) => r.text());
console.debug('[Decky:Boot] Connecting to Decky backend...');
- const ws = window.DeckyBackend = new (await import('./wsrouter')).WSRouter();
+ const ws = (window.DeckyBackend = new (await import('./wsrouter')).WSRouter());
await ws.connect();
console.time('[Decky:Boot] Waiting for SteamApp init stage 1 to finish...');
@@ -35,19 +35,19 @@ const isSteamAppInitialized = () => {
console.debug('[Decky:Boot] Setting up Module System & React globals...');
let moduleId = 0;
- const int = window._deckyModuleResolverInternals = {
+ const int = (window._deckyModuleResolverInternals = {
scopes: new Map(),
- scopedObjects: new Map()
- };
- const resolveThroughBackend = ws.callable<[objectKey: number]>("instrumentation/resolve_scope");
+ scopedObjects: new Map(),
+ });
+ const resolveThroughBackend = ws.callable<[objectKey: number]>('instrumentation/resolve_scope');
async function resolveModuleScope(objectFromScope: any, moduleForDebug?: string) {
let ret;
const id = ++moduleId;
try {
- int.scopedObjects.set(id, objectFromScope)
+ int.scopedObjects.set(id, objectFromScope);
await resolveThroughBackend(id);
ret = int.scopes.get(id);
- } catch(e) {
+ } catch (e) {
console.debug(`[Decky:Instrumentation] Scope resolution failed for module ${moduleForDebug}`, e);
} finally {
int.scopes.delete(id);