mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
move try_to_int64 to StrUtil
This commit is contained in:
parent
f4bcf9ad1d
commit
2c2003aa5b
4 changed files with 10 additions and 10 deletions
|
@ -10,7 +10,7 @@ bool cheat_info::from_str(const std::string& cheat_line)
|
|||
auto cheat_vec = fmt::split(cheat_line, {"@@@"}, false);
|
||||
|
||||
s64 val64 = 0;
|
||||
if (cheat_vec.size() != 5 || !cfg::try_to_int64(&val64, cheat_vec[2], 0, cheat_type_max - 1))
|
||||
if (cheat_vec.size() != 5 || !try_to_int64(&val64, cheat_vec[2], 0, cheat_type_max - 1))
|
||||
{
|
||||
log_cheat.fatal("Failed to parse cheat line");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue