maint: small update

This commit is contained in:
Diavolo 2023-05-26 16:38:15 +02:00
parent 2a48b454ba
commit 74a8442142
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function curl.import()
links { "curl" }
filter "toolset:msc*"
links { "Crypt32.lib" }
links { "Crypt32.lib" }
filter {}
curl.includes()

View File

@ -6,6 +6,7 @@ enum class game_type
{
unknown = 0,
iw4,
iw5,
iw6,
s1,
t7,
@ -17,6 +18,7 @@ inline const std::string& resolve_game_type_name(const game_type game)
{
{game_type::unknown, "Unknown"},
{game_type::iw4, "IW4"},
{game_type::iw5, "IW5"},
{game_type::iw6, "IW6"},
{game_type::s1, "S1"},
{game_type::t7, "T7"},
@ -32,6 +34,11 @@ inline game_type resolve_game_type(const std::string& game_name)
return game_type::iw4;
}
if (game_name == "IW5")
{
return game_type::iw5;
}
if (game_name == "IW6")
{
return game_type::iw6;