fix a RetroAchievements PSX hashing edge case
This commit is contained in:
parent
e87536ea8f
commit
01cc5ca476
|
@ -84,7 +84,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (term == ';' || term == '\0')
|
if (term == ';' || term == '\0')
|
||||||
{
|
{
|
||||||
var fn = Encoding.ASCII.GetString(buf2048, index + 33, filename.Length);
|
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];
|
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];
|
return (buf2048[index + 4] << 16) | (buf2048[index + 3] << 8) | buf2048[index + 2];
|
||||||
|
|
Loading…
Reference in New Issue