From 06c396fd27f55929b40161e587cb9b596b549f3f Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Fri, 17 Apr 2026 00:53:20 -0500 Subject: Symlink saves, rank prefixes by Steam app type, ntsync safeguards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace copy-in/copy-out save deployment with a direct symlink from the prefix's __MO_Saves to the profile's saves/. Writes land in the profile immediately; afterRun reverts the symlink + prefix INI so a vanilla launch outside MO2 uses the default Saves dir. - Parse Steam's binary appinfo.vdf (v41) via a new Rust FFI crate backed by steam-vdf-parser. Rank detected games by common.type so real Games beat Tools/Editors when multiple prefixes share a My Games folder name (fixes Creation Kit shadowing Skyrim SE). Top-ranked candidate overwrites stale symlinks from earlier runs. - Switch bundled Steam Linux Runtime downloader from sniper (steamrt3) to steamrt4 so Proton 11+ works out of the box. steamrt4 omits xrandr so we inject it from the Debian x11-xserver-utils .deb into a dedicated dir and prepend it to PATH via `env PATH=...` inside the pressure-vessel container (PATH env doesn't propagate). - Auto-kill stale wineboot/wineserver/pv-adverb processes still bound to the prefix before starting a new wineboot -u; match by /proc//environ WINEPREFIX / STEAM_COMPAT_DATA_PATH since Wine cmdlines are Windows-style. Same sweep runs in destroyPrefix so a delete actually frees file handles. - Blacklist Proton 11 (Steam-bundled) — its current Wine tree deadlocks during wineboot -u on modern kernels via ntsync / futex_wait_multiple races. Use "waitforexitandrun" (not "run") for prefix init so use_sessions=1 Protons don't fork into a persistent session manager. - Drop WINEDEBUG=-all during prefix init so wineboot progress is visible. Suppress focus-stealing by setting WA_ShowWithoutActivating on the PrefixSetupDialog and SLR download progress dialogs. Co-Authored-By: Claude Opus 4.7 (1M context) --- libs/steam_appinfo_ffi/include/steam_appinfo_ffi.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libs/steam_appinfo_ffi/include/steam_appinfo_ffi.h (limited to 'libs/steam_appinfo_ffi/include') diff --git a/libs/steam_appinfo_ffi/include/steam_appinfo_ffi.h b/libs/steam_appinfo_ffi/include/steam_appinfo_ffi.h new file mode 100644 index 0000000..be53999 --- /dev/null +++ b/libs/steam_appinfo_ffi/include/steam_appinfo_ffi.h @@ -0,0 +1,24 @@ +#ifndef MO2_STEAM_APPINFO_FFI_H +#define MO2_STEAM_APPINFO_FFI_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/// Callback invoked once per app in appinfo.vdf. Strings are valid for the +/// duration of the call only — copy if you want to keep them. +typedef void (*SteamAppInfoCallback)(void* user, uint32_t appid, + const char* type, const char* name); + +/// Parse Steam's appinfo.vdf at `path` and invoke `cb` for every app. +/// Returns 0 on success, negative on error. +int32_t steam_appinfo_parse(const char* path, void* user, + SteamAppInfoCallback cb); + +#ifdef __cplusplus +} +#endif + +#endif // MO2_STEAM_APPINFO_FFI_H -- cgit v1.3.1