diff --git a/CHANGELOG.md b/CHANGELOG.md index e8cb3cc..7b26a6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Who knows what the future holds... # 0.X.Y - DD/MM/YYYY ### Changes: +Game: +- Added [Barotrauma](https://store.steampowered.com/app/602960/Barotrauma/) support. + Crate: - Added `Send` and `Sync` on `Error::source` to fix some async issues. diff --git a/GAMES.md b/GAMES.md index 633ce7e..4a71917 100644 --- a/GAMES.md +++ b/GAMES.md @@ -61,6 +61,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Warsow | WARSOW | Quake 3 | | | Creativerse | CREATIVERSE | Valve | Query Port offset: 1. | | Garry's Mod | GARRYSMOD | Valve | | +| Barotrauma | BAROTRAUMA | Valve | Query Port offset: 1. | ## Planned to add support: _ diff --git a/src/games/definitions.rs b/src/games/definitions.rs index 0d0e0c4..4b3a7f9 100644 --- a/src/games/definitions.rs +++ b/src/games/definitions.rs @@ -39,6 +39,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "ase" => game!("ARK: Survival Evolved", 27015, Protocol::Valve(SteamApp::ASE)), "asrd" => game!("Alien Swarm: Reactive Drop", 2304, Protocol::Valve(SteamApp::ASRD)), "avorion" => game!("Avorion", 27020, Protocol::Valve(SteamApp::AVORION)), + "barotrauma" => game!("Barotrauma", 27016, Protocol::Valve(SteamApp::BAROTRAUMA)), "battalion1944" => game!("Battalion 1944", 7780, Protocol::Valve(SteamApp::BATTALION1944)), "brainbread2" => game!("BrainBread 2", 27015, Protocol::Valve(SteamApp::BRAINBREAD2)), "battlefield1942" => game!("Battlefield 1942", 23000, Protocol::Gamespy(GameSpyVersion::One)), diff --git a/src/games/valve.rs b/src/games/valve.rs index b9efb24..e55594b 100644 --- a/src/games/valve.rs +++ b/src/games/valve.rs @@ -14,6 +14,7 @@ game_query_mod!( BALLISTICOVERKILL, 27016 ); +game_query_mod!(barotrauma, "Barotrauma", BAROTRAUMA, 27016); game_query_mod!(blackmesa, "Black Mesa", BLACKMESA, 27015); game_query_mod!(brainbread2, "BrainBread 2", BRAINBREAD2, 27015); game_query_mod!(codenamecure, "Codename CURE", CODENAMECURE, 27015); diff --git a/src/protocols/valve/types.rs b/src/protocols/valve/types.rs index 4082ece..e3c888a 100644 --- a/src/protocols/valve/types.rs +++ b/src/protocols/valve/types.rs @@ -339,6 +339,8 @@ pub enum SteamApp { VRISING, /// Hell Let Loose HLL, + /// Barotrauma + BAROTRAUMA, } impl SteamApp { @@ -378,6 +380,7 @@ impl SteamApp { Self::BATTALION1944 => Engine::new_source(489_940), Self::INSURGENCYSANDSTORM => Engine::new_source(581_320), Self::ASRD => Engine::new_source(563_560), + Self::BAROTRAUMA => Engine::new_source(602960), Self::ROR2 => Engine::new_source(632_360), Self::OHD => Engine::new_source_with_dedicated(736_590, 950_900), Self::ONSET => Engine::new_source(1_105_810),