mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 02:29:16 +01:00
Fix a crash upon relaunching after removing a SD/USB device (InfiniteBlueGX) (#446)
This commit is contained in:
parent
14210941ad
commit
b15c3c7dc6
@ -848,7 +848,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