Skip to content

Commit

Permalink
[config] support more bool values
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse committed Jun 6, 2020
1 parent 4080a78 commit 5bcf16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ namespace vkBasalt
auto found = options.find(option);
if (found != options.end())
{
if (found->second == "True")
if (found->second == "True" || found->second == "true" || found->second == "1")
{
result = true;
}
else if (found->second == "False")
else if (found->second == "False" || found->second == "false" || found->second == "0")
{
result = false;
}
Expand Down

0 comments on commit 5bcf16e

Please sign in to comment.