ED64
ED64 copied to clipboard
Fixed issues with 0xff padding check and removal
Description
This PR fixes an issue that prevents ROMs from loading to EverDrive x7 via USB.
Related Issue
(https://github.com/krikzz/ED64/issues/23)
Motivation and Context
Could not load any ROMs, failed on Index out of Range error. Fixing this error revealed that a loop was returning a method when it should have been breaking the loop. After fixing this error most ROMs (padded and unpadded) worked, but Super Mario 64 did not. Added a condition to only check for padding if ROM is below 3 MB in order to hopefully exclude all retail ROMs from breaking.
How Has This Been Tested?
Loaded padded and unpadded roms, both homebrew and retail successfully.
Screenshots (if appropriate):
LGTM... Seems I made a stupid error there...