mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-23 16:41:12 +01:00
fix crash on launch when using network shares
This commit is contained in:
parent
e27e792485
commit
6b23a58a83
@ -718,7 +718,7 @@ bool LoadPrefs()
|
||||
sprintf(GCSettings.ArtworkFolder, "snes9xgx/artwork");
|
||||
|
||||
// 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];
|
||||
sprintf(dirPath, "%s%s", pathPrefix[GCSettings.LoadMethod], GCSettings.ScreenshotsFolder);
|
||||
CreateDirectory(dirPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user