Files
Pierre Kisters 24d6504f30 Add steam-ui-patches (generic Steam UI runtime patches) and launcher-menu
steamFrame.uiPatches.patches registers JS patches that the
steam-ui-patches user service keeps injected into Steam's (or SteamVR's)
web UI over the local CEF DevTools ports and reverts when it stops.

steamFrame.launcherMenu uses it for the VR "+" menu: sort = true sorts
the programs by name; pinDesktop = "top" / "bottom" pins Desktop above or
below the scrolling list.
2026-09-27 19:36:12 +02:00

10 lines
370 B
JavaScript

// Reverts order/patch.js (restores the original
// SteamClient.Apps.ScanForInstalledNonSteamApps). Safe when not patched.
(() => {
const Apps = window.SteamClient?.Apps;
const f = Apps?.ScanForInstalledNonSteamApps;
if (f?.__sfuiPatch !== 'launcher-menu-order') return 'not patched';
Apps.ScanForInstalledNonSteamApps = f.__sfuiOrig;
return 'unpatched';
})()