Closed nishantc1527 closed 7 months ago
Hi, thank you for your PR! Have you identified any issue with not having this? Because I think it might be covered by the get method and % self.external_rom_count
.
But I can see that we never check 0x148, but that might be good to do in general.
I did not notice the external_rom_count
part, sorry. However, I noticed that this value is gotten from the length of the file. Could this be something else to fix? Because there are cases when the rom file is padded at the end for whatever reason leading to inaccuracies, and reading directly from 0x0148
will prevent inaccuracies.
I did not notice the
external_rom_count
part, sorry. However, I noticed that this value is gotten from the length of the file. Could this be something else to fix? Because there are cases when the rom file is padded at the end for whatever reason leading to inaccuracies, and reading directly from0x0148
will prevent inaccuracies.
No worries :) Would you like to do a quick survey, and check the games you have? It's allowed to be padded with zeros, but I have no idea how often the files don't match the bank count in 0x148.
Added this missing functionality to the mbc1 mapper. I am not sure of any games that would require this / break without this. Tests still pass.