How valvesoftware/proton works
Proton lets Windows-exclusive games run on Linux using Wine. The supplied tree and excerpts chiefly expose lsteamclient, a Steam API compatibility layer: a game-facing Remote Storage call is adapted to a Steam-client call through generated parameter structures and dispatch macros. The wider game-launch path through Wine is documented, but its implementation is not present in the supplied files. Other Steam API areas and SDK interface versions are represented in the tree; their internal wiring is not established by these excerpts.
Main entry points: winISteamRemoteStorage.c Remote Storage bridge · steamclient_generated.c Generated dispatch · steamclient_private.h Client ABI support · steamclient_main.c Client entry
Components 16
Compatibility runtime
- Client ABI support
lsteamclient/steamclient_private.h - Generated dispatch
lsteamclient/steamclient_generated.c - Client entry
lsteamclient/steamclient_main.c - Generated API structures
lsteamclient/steamclient_structs_generated.h
Steam API bridges
- Remote Storage bridge
lsteamclient/winISteamRemoteStorage.c - User and apps APIs
lsteamclient - Friends and community
lsteamclient - Games and matchmaking
lsteamclient - Networking APIs
lsteamclient - Media and input APIs
lsteamclient - UGC and inventory
lsteamclient - Manual API wrappers
lsteamclient/steam_networking_manual.c
Steamworks interfaces
- Versioned SDK interfaces
lsteamclient/steamworks_sdk_136/isteamremotestorage.h
Other components
- Windows game
- Wine runtime
- Steam client
Connections 7
- Windows game → Wine runtime: runs through
- Wine runtime → Remote Storage bridge: calls API
- Remote Storage bridge → Client ABI support: uses ABI support
lsteamclient/winISteamRemoteStorage.c - Remote Storage bridge → Generated dispatch: dispatches calls
lsteamclient/winISteamRemoteStorage.c - Client ABI support → Generated dispatch: includes declarations
lsteamclient/steamclient_private.h - Generated dispatch → Steam client: forwards calls
- Client entry → Steam client: initializes client