From a207c39915fc6656f1da1bf63225553c20e9d800 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 7 Apr 2024 23:04:04 +0300 Subject: [PATCH] feat: add enshrouded support (#199) --- GAMES.md | 3 ++- crates/lib/CHANGELOG.md | 1 + crates/lib/src/games/definitions.rs | 1 + crates/lib/src/games/valve.rs | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/GAMES.md b/GAMES.md index ac50398..3110589 100644 --- a/GAMES.md +++ b/GAMES.md @@ -82,7 +82,8 @@ Beware of the `Notes` column, as it contains information about query port offset | Call Of Duty: Black Ops 3 | CODBO3 | Valve | Query port: 27017. | | Counter-Strike 2 | COUNTERSTRIKE2 | Valve | | | Double Action: Boogaloo | DAB | Valve | | -| Mordhau | MORDHAU | Valve | +| Mordhau | MORDHAU | Valve | | +| Enshrouded | ENSHROUDED | Valve | | ## Planned to add support: _ diff --git a/crates/lib/CHANGELOG.md b/crates/lib/CHANGELOG.md index 627560e..e2e89b8 100644 --- a/crates/lib/CHANGELOG.md +++ b/crates/lib/CHANGELOG.md @@ -4,6 +4,7 @@ Who knows what the future holds... # 0.X.Y - DD/MM/YYYY Games: - [Mordhau](https://store.steampowered.com/app/629760/MORDHAU/) support. +- [Enshrouded](https://store.steampowered.com/app/1203620/Enshrouded/) support. # 0.5.0 - 15/03/2024 ### Changes: diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 3cb8b27..a72d2ac 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -82,6 +82,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "dods" => game!("Day of Defeat: Source", 27015, Protocol::Valve(Engine::new(300))), "doi" => game!("Day of Infamy", 27015, Protocol::Valve(Engine::new(447_820))), "dst" => game!("Don't Starve Together", 27016, Protocol::Valve(Engine::new(322_320))), + "enshrouded" => game!("Enshrouded", 15637, Protocol::Valve(Engine::new(1_203_620))), "ffow" => game!("Frontlines: Fuel of War", 5478, Protocol::PROPRIETARY(ProprietaryProtocol::FFOW)), "garrysmod" => game!("Garry's Mod", 27016, Protocol::Valve(Engine::new(4000))), "hl2d" => game!("Half-Life 2 Deathmatch", 27015, Protocol::Valve(Engine::new(320))), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 617323a..4f7e694 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -90,6 +90,7 @@ game_query_mod!(dod, "Day of Defeat", Engine::new_gold_src(false), 27015); game_query_mod!(dods, "Day of Defeat: Source", Engine::new(300), 27015); game_query_mod!(doi, "Day of Infamy", Engine::new(447_820), 27015); game_query_mod!(dst, "Don't Starve Together", Engine::new(322_320), 27016); +game_query_mod!(enshrouded, "Enshrouded", Engine::new(1_203_620), 15637); game_query_mod!(garrysmod, "Garry's Mod", Engine::new(4000), 27016); game_query_mod!(hl2d, "Half-Life 2 Deathmatch", Engine::new(320), 27015); game_query_mod!(