CFG: provide _int range in to_list()

This commit is contained in:
Nekotekina 2017-08-02 13:22:53 +03:00
parent 930ce4af60
commit faf9ed9fec
2 changed files with 14 additions and 1 deletions

View file

@ -12,6 +12,9 @@
namespace cfg
{
// Format min and max values
std::vector<std::string> make_int_range(s64 min, s64 max);
// Convert string to signed integer
bool try_to_int64(s64* out, const std::string& value, s64 min, s64 max);
@ -249,6 +252,11 @@ namespace cfg
return false;
}
std::vector<std::string> to_list() const override
{
return make_int_range(Min, Max);
}
};
// Alias for 32 bit int