From 967dc37d640d65eba9c5aa96fb24e26ecdb46b78 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 10 Mar 2024 23:39:39 +0200 Subject: [PATCH] feat: add Double Action: Boogaloo 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 c460440..1e1747d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Games: - Eco support (by @CosminPerRam). - [Call Of Duty: Black Ops 3](https://store.steampowered.com/agecheck/app/311210/) support. - [Counter-Strike 2](https://store.steampowered.com/app/730/CounterStrike_2/) support. +- [Double Action: Boogaloo](https://store.steampowered.com/app/317360/Double_Action_Boogaloo/) support. Crate: - Changed the serde feature to only enable serde derive for some types: serde and serde_json is now a dependecy by default. diff --git a/GAMES.md b/GAMES.md index c967cf3..e9ac7b7 100644 --- a/GAMES.md +++ b/GAMES.md @@ -81,6 +81,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Zombie Panic: Source | ZPS | Valve | Query port: 27015. | | Call Of Duty: Black Ops 3 | CODBO3 | Valve | Query port: 27017. | | Counter-Strike 2 | CS2 | Valve | | +| Double Action: Boogaloo | DAB | Valve | | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index eb9a654..3672bb4 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -77,6 +77,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "css" => game!("Counter-Strike: Source", 27015, Protocol::Valve(Engine::new(240))), "creativerse" => game!("Creativerse", 26901, Protocol::Valve(Engine::new(280_790))), "crysiswars" => game!("Crysis Wars", 64100, Protocol::Gamespy(GameSpyVersion::Three)), + "dab" => game!("Double Action: Boogaloo", 27015, Protocol::Valve(Engine::new(317_360))), "dod" => game!("Day of Defeat", 27015, Protocol::Valve(Engine::new_gold_src(false))), "dods" => game!("Day of Defeat: Source", 27015, Protocol::Valve(Engine::new(300))), "doi" => game!("Day of Infamy", 27015, Protocol::Valve(Engine::new(447_820))), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 0666b09..026d4bf 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -85,6 +85,7 @@ game_query_mod!( 27015 ); game_query_mod!(css, "Counter-Strike: Source", Engine::new(240), 27015); +game_query_mod!(dab, "Double Action: Boogaloo", Engine::new(317_360), 27015); 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);