diff --git a/src/BizHawk.Emulation.Common/DSKIdentifier.cs b/src/BizHawk.Emulation.Common/DSKIdentifier.cs index 32b9153211f..96fea2bb67e 100644 --- a/src/BizHawk.Emulation.Common/DSKIdentifier.cs +++ b/src/BizHawk.Emulation.Common/DSKIdentifier.cs @@ -406,15 +406,7 @@ public class Sector public byte[] SectorData { get; set; } public bool ContainsMultipleWeakSectors { get; set; } - public int GetModChecksum256() - { - int res = 0; - for (int i = 0; i < ActualDataByteLength; i++) - { - res = (res + SectorData[i]) % 256; - } - return res; - } + public byte GetModChecksum256() => (byte) (SectorData.Sum(static b => b) & 0xFF); } } }