A Rust library for detecting and parsing data about games installed on the system. Currently only supports Linux.
This is a Rust library intended to be used for programs which need information on currently installed games, such as a games launcher, or mod manager. It can provide information such as what games are installed across multiple launchers (such as Steam and Heroic Games Launcher), where those games are installed, what command will launch them, and more.
Install with cargo add lib_game_detector
or add the following to your Cargo.toml
:
toml
[dependencies]
lib_game_detector = "0.0.1"
```rust use libgamedetector::{data::SupportedLaunchers, get_detector};
let detector = getdetector(); let detectedlaunchers = detector.getdetectedlaunchers(); let allgames = detector.getalldetectedgames(); let allgamesbylauncher = detector.getalldetectedgamesperlauncher(); let allgamesfromsteam = detector.getalldetectedgamesfromspecific_launcher(SupportedLaunchers::Steam); ```
$PATH
, such as 0 A.D.License: AGPLv3