pub fn try_guess_proton(game_path: impl AsRef<Path>) -> Result<bool>Expand description
Guess whether a game is running under Proton (Linux Steam Play), returning errors.
This is the fallible version of guess_proton. On Windows it always
returns Ok(false).
use loadsmith_platform::try_guess_proton;
match try_guess_proton("/path/to/game") {
Ok(true) => println!("Likely running under Proton"),
Ok(false) => println!("Native Linux or Windows"),
Err(e) => eprintln!("Error checking Proton: {e}"),
}