Skip to main content

guess_proton

Function guess_proton 

Source
pub fn guess_proton(game_path: impl AsRef<Path>) -> bool
Expand description

Guess whether a game is running under Proton (Linux Steam Play).

On Windows this always returns false. On Linux, it checks for a .forceproton marker file or the presence of .exe files in the game directory. Errors are silently swallowed and return false.

use loadsmith_platform::guess_proton;

let is_proton = guess_proton("/path/to/game");
println!("Proton: {is_proton}");