Skip to content

Commit 3d84545

Browse files
committed
improve steam support
1 parent f264b41 commit 3d84545

9 files changed

Lines changed: 780 additions & 449 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ node_modules/
66
/export*/*
77
src/c3/
88
.env
9-
.vscode/settings.json
9+
.vscode/settings.json
10+
src/ts-defs

README.md

Lines changed: 170 additions & 68 deletions
Large diffs are not rendered by default.

build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,6 @@ try {
592592
write: false,
593593
})
594594

595-
console.log('pluginTranspiled', pluginTranspiled)
596595

597596
const file = pluginTranspiled.outputFiles[0].text;
598597

examples/example.c3p

171 Bytes
Binary file not shown.

examples/steam.c3p

179 KB
Binary file not shown.

src/dom.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
this.AddRuntimeMessageHandlers([
1414
["set-fullscreen", (e) => this._OnSetFullscreen(
15-
/** @type {import("./sdk.js").PostFullscreenState} */
16-
e
15+
/** @type {import("./sdk.js").PostFullscreenState} */
16+
e
1717
)],
1818
["get-fullscreen-state", () => this._OnGetFullscreenState()],
19+
["get-infos", () => this._NotifyInfos()],
1920
]);
2021

2122
// Initialize fullscreen state
@@ -56,6 +57,13 @@
5657
_NotifyFullscreenStateChanged() {
5758
this.PostToRuntime("fullscreen-state-changed", this._fullscreenState);
5859
}
60+
61+
_NotifyInfos() {
62+
return {
63+
engine: globalThis.pipelabEngine,
64+
isPipelab: !!globalThis.pipelabEngine,
65+
};
66+
}
5967
};
6068

6169
self.RuntimeInterface.AddDOMHandlerClass(HANDLER_CLASS);

0 commit comments

Comments
 (0)