mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 14:24:16 +01:00
Fix a crash upon relaunching after removing a SD/USB device (#479)
This commit is contained in:
parent
bdf40d33c2
commit
ca59df2961
@ -634,7 +634,9 @@ bool LoadPrefs()
|
||||
FixInvalidSettings();
|
||||
|
||||
// attempt to create directories if they don't exist
|
||||
if(GCSettings.LoadMethod == DEVICE_SD || GCSettings.LoadMethod == DEVICE_USB) {
|
||||
if((GCSettings.LoadMethod == DEVICE_SD && ChangeInterface(DEVICE_SD, SILENT))
|
||||
|| (GCSettings.LoadMethod == DEVICE_USB && ChangeInterface(DEVICE_USB, SILENT)))
|
||||
{
|
||||
char dirPath[MAXPATHLEN];
|
||||
sprintf(dirPath, "%s%s", pathPrefix[GCSettings.LoadMethod], GCSettings.ScreenshotsFolder);
|
||||
CreateDirectory(dirPath);
|
||||
|
Loading…
Reference in New Issue
Block a user