Repository navigation
Commit f8494a8
committed
NES: Fixed bogus corrections in rom_loadmem when crc32 isn't available (#181)
When loading a ROM, retro-go calcs the crc32 of the rom and searches for it in the database. If the CRC32 is 0, the last entry in the database will be selected, which is invalid.
This patch just confirms that the selected entry is valid.
A proper patch might be to not search the database at all if we don't have a crc function. But that would change multiple lines versus just this one!1 parent eb70c10 commit f8494a8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments