mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #14648 from Linblow/cwcheat-utf8
Detect CwCheat file UTF-8 BOM sequence and ignore it
This commit is contained in:
commit
e5db962601
1 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,9 @@ bool CheatFileParser::Parse() {
|
|||
if (!tempLine)
|
||||
continue;
|
||||
|
||||
// Detect UTF-8 BOM sequence, and ignore it.
|
||||
if (line_ == 1 && memcmp(tempLine, "\xEF\xBB\xBF", 3) == 0)
|
||||
tempLine += 3;
|
||||
std::string line = TrimString(tempLine);
|
||||
|
||||
// Minimum length 5 is shortest possible _ lines name of the game "_G N+"
|
||||
|
|
Loading…
Add table
Reference in a new issue