mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 11:01:07 +00:00
An opt-in second Steam client (Steam settings, Steam client: x86-64): Valve's x86-64 Linux client, unchanged, runs under FEX in its own home with its own game library and the same sign-in. Linux builds run directly, so titles such as Team Fortress 2 and Half-Life use their Linux versions; Windows games use DroidDeck-Proton as on arm64. The arm64 client stays the default. - droiddeck-steam-x64: FEX and the x86-64 rootfs from DroidDeck-Components (sha256-pinned), client install and sync from Valve's CDN, sign-in shared with the arm64 client, its web helper on the GPU (ANGLE GL over FEX's GL thunk, zink, Turnip), Proton wrappers for the arm64 client's tools, DroidDeck direct for Linux builds, SD-card library (x86-64/ beside the arm64 one), repair. - FEX 2610 built by build-fex.yml with thunks and three patches: an openat2 fallback without openat2 (proot), newer-clang thunkgen, MAP_32BIT exhaustion returning ENOMEM. libblsession resolves RESOLVE_IN_ROOT paths inside the root. - Session: x86-64 gating, shortcuts and compatibility tools per client, logs from the client that ran. - App: client setting with the FEX version, an x86-64 chip on the Games header, the active client's library, art, storage, downloads, repair, Offline Mode, Decky, desktop mode, optional VAC diagnostics; per-client state for art, the content log, repair and leftovers. - Strings in every locale. - Review fixes: the library cache is saved only by the newest scan; an abandoned session's Steam logs come from the client it recorded; distinct VAC console names; FEXInterpreter in CPU pinning; clearer VAC hint in pl, ru, uk, cs and bg.
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
/* In Deck mode (-steamos3) the x86-64 client's SteamOS audio manager passes libpulse the NULL operation of a
|
|
* failed request, and libpulse aborts on it ("Assertion 'o' failed ... pa_operation_get_state()"). */
|
|
#if defined(__x86_64__) || defined(__i386__)
|
|
#define _GNU_SOURCE
|
|
#include <dlfcn.h>
|
|
#include <stddef.h>
|
|
|
|
typedef struct pa_operation pa_operation;
|
|
|
|
#define PA_OPERATION_CANCELLED 2
|
|
|
|
/* A libpulse loaded with RTLD_LOCAL (Wine's winepulse.so) is not in RTLD_NEXT's scope. */
|
|
static void *libpulse(const char *name) {
|
|
void *fn = dlsym(RTLD_NEXT, name);
|
|
if (!fn) {
|
|
void *handle = dlopen("libpulse.so.0", RTLD_LAZY | RTLD_NOLOAD);
|
|
if (handle) {
|
|
fn = dlsym(handle, name);
|
|
dlclose(handle);
|
|
}
|
|
}
|
|
return fn;
|
|
}
|
|
|
|
int pa_operation_get_state(pa_operation *o) {
|
|
static int (*next)(pa_operation *);
|
|
if (!o)
|
|
return PA_OPERATION_CANCELLED;
|
|
if (!next)
|
|
next = (int (*)(pa_operation *))libpulse("pa_operation_get_state");
|
|
return next ? next(o) : PA_OPERATION_CANCELLED;
|
|
}
|
|
|
|
void pa_operation_unref(pa_operation *o) {
|
|
static void (*next)(pa_operation *);
|
|
if (!o)
|
|
return;
|
|
if (!next)
|
|
next = (void (*)(pa_operation *))libpulse("pa_operation_unref");
|
|
if (next)
|
|
next(o);
|
|
}
|
|
|
|
void pa_operation_cancel(pa_operation *o) {
|
|
static void (*next)(pa_operation *);
|
|
if (!o)
|
|
return;
|
|
if (!next)
|
|
next = (void (*)(pa_operation *))libpulse("pa_operation_cancel");
|
|
if (next)
|
|
next(o);
|
|
}
|
|
#else
|
|
typedef int pulseguard_arm_build_has_nothing_to_do;
|
|
#endif
|