mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
CFG: provide _int range in to_list()
This commit is contained in:
parent
930ce4af60
commit
faf9ed9fec
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue