Skip to content

Commit

Permalink
Fix off by 1 in PSX RetroAchievements disc hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Oct 17, 2024
1 parent 0105cae commit ce3af37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int GetFileSector(string filename, out int filesize)
return sector;
}

filename = filename.Remove(0, slashIndex);
filename = filename.Remove(0, slashIndex + 1);
numSectors = (filesize + 2047) / 2048;
}

Expand Down

0 comments on commit ce3af37

Please sign in to comment.