maint: update game_server

This commit is contained in:
Diavolo 2023-12-09 17:32:51 +01:00
parent 9ae077d07e
commit 77d96e762a
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -8,6 +8,7 @@ enum class game_type
iw4,
iw5,
iw6,
iw7,
s1,
t7,
};
@ -20,6 +21,7 @@ inline const std::string& resolve_game_type_name(const game_type game)
{game_type::iw4, "IW4"},
{game_type::iw5, "IW5"},
{game_type::iw6, "IW6"},
{game_type::iw7, "IW7"},
{game_type::s1, "S1"},
{game_type::t7, "T7"},
};
@ -44,6 +46,11 @@ inline game_type resolve_game_type(const std::string& game_name)
return game_type::iw6;
}
if (game_name == "IW7")
{
return game_type::iw7;
}
if (game_name == "S1")
{
return game_type::s1;