32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
197 stars 69 forks source link

firmware: fix launch early-out errors #815

Closed Daft-Freak closed 1 year ago

Daft-Freak commented 1 year ago

The reloc header check returned ~0 instead of false... and leaked the file.

Also if file opening the file failed we'd leave the flash unmapped, so move the unmap after both.

Daft-Freak commented 1 year ago

Uh, I'm just going to merge this bug fix...