Fixed issue with cheats import failing on DS format cheats

Reverted part of cheats.cpp back to earlier code. The new code causes the import of DuckStation format cheats to fail unnecessarily.  Eg. Importing this will fail:
#Show sides of screen that are blacked out
A706E00A 0C012400
A706DFD2 0C012400
This commit is contained in:
PugsyMAME 2024-09-07 19:19:41 +01:00 committed by GitHub
parent f4e8470502
commit 60a2d3320b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -661,10 +661,8 @@ bool CheatList::LoadFromString(const std::string& str, Format format)
return LoadFromPCSXRString(str);
else if (format == Format::Libretro)
return LoadFromLibretroString(str);
else if (format == Format::EPSXe)
return LoadFromEPSXeString(str);
else
return false;
format = Format::EPSXe;
return LoadFromEPSXeString(str);
}
bool CheatList::SaveToPCSXRFile(const char* filename)