GXTX / YACardEmu

Software emulator for Sanwa CRP-1231BR-10 / CRP-1231LR-10NAB / CR-S31R-10HS3 card readers.
GNU General Public License v2.0
32 stars 10 forks source link

Segfault\crash if no image file exists #23

Closed Nezarn closed 9 months ago

Nezarn commented 9 months ago

Maybe include a dummy\blank image or handle if theres no image file? (so it doesn't crash and still works as before)

EmiMidnight commented 9 months ago

Just created a pull request to fix this.

GXTX commented 9 months ago

Maybe include a dummy\blank image

A transparent surface is created if none can be found, it was/is a bug that I didn't check for the existence of the folder.