mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 04:04:16 +02:00
- finders.js (VERSION 2): resolvePatch (resolveAll or the "signature not found, ... left unpatched" status), ensureStyle and logger, used by the patches instead of their own copies. - hooks.js (VERSION 2) no longer unwinds per-patch wrappers of old patch versions; dashboard-windows and steam-close-button drop their handling of versions <= 2 / <= 6 (in-page only, gone with any SteamVR restart). - VERSIONs: dashboard-windows 4, steam-close-button 9, window-curvature 21, frame-controls 7, steam-keyboard-patch 22, launcher-menu grid 7, pinned-desktop 4, show-all 2.
12 lines
437 B
JavaScript
12 lines
437 B
JavaScript
// Reverts dashboard-windows/patch.js: removes its SendMessage hook and
|
|
// resends the scene graph so the stock limits apply at once. Safe when not
|
|
// patched.
|
|
(() => {
|
|
const st = window.__sfuiDashboardWindows;
|
|
if (!st) return 'not patched';
|
|
delete window.__sfuiDashboardWindows;
|
|
window.__sfuiHooks?.remove(st.proto, 'SendMessage', 'dashboard-windows');
|
|
try { st.resend?.(); } catch { /* ignore */ }
|
|
return 'unpatched';
|
|
})()
|