fix a RetroAchievements PSX hashing edge case

This commit is contained in:
CasualPokePlayer 2023-07-23 03:28:54 -07:00
parent e87536ea8f
commit 01cc5ca476
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ namespace BizHawk.Client.EmuHawk
if (term == ';' || term == '\0')
{
var fn = Encoding.ASCII.GetString(buf2048, index + 33, filename.Length);
if (filename == fn)
if (filename.Equals(fn, StringComparison.OrdinalIgnoreCase))
{
filesize = (buf2048[index + 13] << 24) | (buf2048[index + 12] << 16) | (buf2048[index + 11] << 8) | buf2048[index + 10];
return (buf2048[index + 4] << 16) | (buf2048[index + 3] << 8) | buf2048[index + 2];