From ad937f72024c62afdf38d01db2eb466ec7167286 Mon Sep 17 00:00:00 2001 From: Rim Date: Thu, 30 May 2024 19:36:43 -0400 Subject: [PATCH] maint: add support for h1 --- src/game_server.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game_server.hpp b/src/game_server.hpp index e295c5f..b473b6b 100644 --- a/src/game_server.hpp +++ b/src/game_server.hpp @@ -9,6 +9,7 @@ enum class game_type iw5, iw6, iw7, + h1, s1, t7, }; @@ -22,6 +23,7 @@ inline const std::string& resolve_game_type_name(const game_type game) {game_type::iw5, "IW5"}, {game_type::iw6, "IW6"}, {game_type::iw7, "IW7"}, + {game_type::h1, "H1"}, {game_type::s1, "S1"}, {game_type::t7, "T7"}, }; @@ -51,6 +53,11 @@ inline game_type resolve_game_type(const std::string& game_name) return game_type::iw7; } + if (game_name == "H1") + { + return game_type::h1; + } + if (game_name == "S1") { return game_type::s1;