If you loaded a game from SD/USB, closed Snes9xGX, removed the device, then re-launched the app, an ErrorPromptRetry dialog would appear ("Device not found") asking to Retry or Cancel. If Cancel was selected with the device still removed, the app would crash.
In preferences.cpp, it was trying to create directories on the devices without first checking if they were mounted or not - this commit fixes the problem.
If you loaded a game from SD/USB, closed Snes9xGX, removed the device, then re-launched the app, an ErrorPromptRetry dialog would appear ("Device not found") asking to Retry or Cancel. If Cancel was selected with the device still removed, the app would crash.
In preferences.cpp, it was trying to create directories on the devices without first checking if they were mounted or not - this commit fixes the problem.