mirror of
https://github.com/dborth/fceugx.git
synced 2024-10-31 22:45:05 +01:00
fix crash on launch when using network shares
This commit is contained in:
parent
3926753c0d
commit
68e04d5584
@ -612,7 +612,7 @@ bool LoadPrefs()
|
|||||||
FixInvalidSettings();
|
FixInvalidSettings();
|
||||||
|
|
||||||
// attempt to create directories if they don't exist
|
// attempt to create directories if they don't exist
|
||||||
if(GCSettings.LoadMethod != DEVICE_AUTO) {
|
if(GCSettings.LoadMethod == DEVICE_SD || GCSettings.LoadMethod == DEVICE_USB) {
|
||||||
char dirPath[MAXPATHLEN];
|
char dirPath[MAXPATHLEN];
|
||||||
sprintf(dirPath, "%s%s", pathPrefix[GCSettings.LoadMethod], GCSettings.ScreenshotsFolder);
|
sprintf(dirPath, "%s%s", pathPrefix[GCSettings.LoadMethod], GCSettings.ScreenshotsFolder);
|
||||||
CreateDirectory(dirPath);
|
CreateDirectory(dirPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user