diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-11-25 16:00:13 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-11-25 16:00:13 +0300 |
commit | faf6c21a91411f2a47f338efa4f6fa8a7b543847 (patch) | |
tree | 89762e3d92b0af7a51efee997e107c1a98c14c99 /Apps | |
parent | e9b5d65cac0b88198a6bd493880707cb0a67ac12 (diff) |
Fix for #1025
Diffstat (limited to 'Apps')
-rw-r--r-- | Apps/SnesGame.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Apps/SnesGame.cs b/Apps/SnesGame.cs index 43d366a9..370a0ff4 100644 --- a/Apps/SnesGame.cs +++ b/Apps/SnesGame.cs @@ -223,9 +223,9 @@ namespace com.clusterrr.hakchi_gui // Boring LoRom/HiRom detection...
if (((romHeaderLoRom.Checksum ^ 0xFFFF) == romHeaderLoRom.ChecksumComplement) &&
- ((romHeaderHiRom.Checksum ^ 0xFFFF) != romHeaderHiRom.ChecksumComplement))
+ ((romHeaderHiRom.Checksum ^ 0xFFFF) != romHeaderHiRom.ChecksumComplement || romHeaderHiRom.Checksum == 0 || romHeaderHiRom.ChecksumComplement == 0))
romType = SnesRomType.LoRom;
- else if (((romHeaderLoRom.Checksum ^ 0xFFFF) != romHeaderLoRom.ChecksumComplement) &&
+ else if (((romHeaderLoRom.Checksum ^ 0xFFFF) != romHeaderLoRom.ChecksumComplement || romHeaderLoRom.Checksum == 0 || romHeaderLoRom.ChecksumComplement == 0) &&
((romHeaderHiRom.Checksum ^ 0xFFFF) == romHeaderHiRom.ChecksumComplement))
romType = SnesRomType.HiRom;
else if (titleLo.Length != 0 && titleHi.Length == 0)
|