DjLeChuck / recalbox-manager

A web interface to manage recalbox configuration
25 stars 10 forks source link

Don't crash when image path is an array #78

Closed facundoolano closed 6 years ago

facundoolano commented 6 years ago

Fixes #77

There's some situation in which the image path value is an array instead of a string (I'm not sure, but I suspect it has to do with the filename containing parentheses), causing the code to crash and preventing the ROM list to load.

This fix checks if the value is an array and takes the first element as the path.