Crates.io | lib_game_detector |
lib.rs | lib_game_detector |
version | 0.0.12 |
source | src |
created_at | 2023-09-09 19:22:27.530885 |
updated_at | 2024-12-07 22:22:11.945532 |
description | A Rust library for detecting and parsing data about games installed on the system |
homepage | |
repository | https://github.com/rolv-apneseth/lib_game_detector/ |
max_upload_size | |
id | 968311 |
size | 224,052 |
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
:
[dependencies]
lib_game_detector = "0.0.12"
use lib_game_detector::{data::SupportedLaunchers, get_detector};
let detector = get_detector();
let detected_launchers = detector.get_detected_launchers();
let all_games = detector.get_all_detected_games();
let all_games_by_launcher = detector.get_all_detected_games_per_launcher();
let all_games_from_steam = detector.get_all_detected_games_from_specific_launcher(SupportedLaunchers::Steam);
Minecraft - {instance name}