From ae9a38907fd411524588aa209750f7eb84c75ef8 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 7 Jan 2024 23:15:35 +0200 Subject: [PATCH] feat(games): add atlas support --- CHANGELOG.md | 1 + GAMES.md | 1 + crates/lib/src/games/definitions.rs | 1 + crates/lib/src/games/valve.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index daff5e1..ab5756c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Games: - [Squad](https://store.steampowered.com/app/393380/Squad/) support. - [Savage 2](https://savage2.net/) support. - [Rising World](https://store.steampowered.com/app/324080/Rising_World/) support. +- [ATLAS](https://store.steampowered.com/app/834910/ATLAS/) support. - Added a valve protocol query example. - Made all of Just Cause 2: Multiplayer Response and Player fields public. diff --git a/GAMES.md b/GAMES.md index 6cf7926..68d2e22 100644 --- a/GAMES.md +++ b/GAMES.md @@ -75,6 +75,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Squad | SQUAD | Valve | | | Savage 2 | SAVAGE2 | Proprietary | | | Rising World | RISINGWORLD | Valve | Query port offset: -1 | +| ATLAS | ATLAS | Valve | Query port offset: 51800 | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 4ac3e8e..ea997ca 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -44,6 +44,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "a2oa" => game!("ARMA 2: Operation Arrowhead", 2304, Protocol::Valve(Engine::new(33930))), "ase" => game!("ARK: Survival Evolved", 27015, Protocol::Valve(Engine::new(346_110))), "asrd" => game!("Alien Swarm: Reactive Drop", 2304, Protocol::Valve(Engine::new(563_560))), + "atlas" => game!("ATLAS", 57561, Protocol::Valve(Engine::new(563_560))), //game_query_mod!(atlas, "ATLAS", Engine::new(834_910), 57561); "avorion" => game!("Avorion", 27020, Protocol::Valve(Engine::new(445_220))), "barotrauma" => game!("Barotrauma", 27016, Protocol::Valve(Engine::new(602_960))), "battalion1944" => game!("Battalion 1944", 7780, Protocol::Valve(Engine::new(489_940))), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 93266ee..3400c65 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -17,6 +17,7 @@ game_query_mod!( Engine::new(563_560), 2304 ); +game_query_mod!(atlas, "ATLAS", Engine::new(834_910), 57561); game_query_mod!(avorion, "Avorion", Engine::new(445_220), 27020); game_query_mod!( ballisticoverkill,