mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-06 06:55:02 +00:00
Qt/cheats: don't accept imported cheats unless valid
This commit is contained in:
parent
77aa5d4bbf
commit
739c178aac
3 changed files with 22 additions and 7 deletions
|
|
@ -34,7 +34,7 @@ bool cheat_info::from_str(std::string_view cheat_line)
|
|||
s64 val64 = 0;
|
||||
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");
|
||||
log_cheat.error("Failed to parse cheat line: '%s'", cheat_line);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue