mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 06:50:29 +02:00
Detect CwCheat file UTF-8 BOM sequence and ignore it
This commit is contained in:
1 parent
565dd80587
commit
0fcf68632d
1 file changed
+3
@@ -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+"
|
||||
|
||||
Reference in new issue
Block a user