diff options
| author | AAGaming <aagaming@riseup.net> | 2026-12-04 01:16:57 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-12-04 01:16:57 -0500 |
| commit | 9c5801d53d28489af5f48c470daf52e90715fe79 (patch) | |
| tree | 50c631c3a42c9cc8343307fd4d142425543d637e /frontend/src/plugin-loader.tsx | |
| parent | a1bb3f74d3eb6e3612c6ba3cbfffc2c59980ead0 (diff) | |
| download | decky-loader-9c5801d53d28489af5f48c470daf52e90715fe79.tar.gz decky-loader-9c5801d53d28489af5f48c470daf52e90715fe79.zip | |
add tabs patching api
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index b16e1bb1..1427cf10 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -755,7 +755,7 @@ class PluginLoader extends Logger { // Things will break *very* badly if plugin code touches this outside of @decky/api, so lets make that clear. window.__DECKY_SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_deckyLoaderAPIInit = { connect: (version: number, pluginName: string) => { - if (version < 1 || version > 2) { + if (version < 1 || version > 3) { console.warn(`Plugin ${pluginName} requested unsupported api version ${version}.`); } @@ -804,6 +804,11 @@ class PluginLoader extends Logger { backendAPI.useQuickAccessVisible = useQuickAccessVisible; } + if (version >= 3) { + backendAPI._version = 3; + backendAPI.tabsHook = this.tabsHook; + } + // Note: version info not available at connection time this.debug(`Plugin ${pluginName} connected to loader API.`); return backendAPI; @@ -829,8 +834,6 @@ class PluginLoader extends Logger { } })(); } - } else { - this.warn(`event ${event} has no listeners`); } }; |
