Cheats: Fix parsing of Retroarch cheats

This commit is contained in:
Connor McLaughlin
2020-09-25 22:00:34 +10:00
parent 40037d6e90
commit e7cfc69975
2 changed files with 11 additions and 10 deletions

View File

@ -2203,7 +2203,7 @@ bool CommonHostInterface::LoadCheatList(const char* filename)
return false;
std::unique_ptr<CheatList> cl = std::make_unique<CheatList>();
if (!cl->LoadFromPCSXRFile(filename))
if (!cl->LoadFromFile(filename, CheatList::Format::Autodetect))
{
AddFormattedOSDMessage(15.0f, TranslateString("OSDMessage", "Failed to load cheats from '%s'."), filename);
return false;