diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 4f790be..e026a11 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -182,7 +182,7 @@ LoadFATFile (char * rbuffer, int length) handle = fopen (filepath, "rb"); if (handle > 0) { - if(length > 0) + if(length > 0) // do a partial read (eg: to check file header) { fread (rbuffer, 1, length, handle); size = length; diff --git a/source/ngc/filesel.cpp b/source/ngc/filesel.cpp index badfc88..982a994 100644 --- a/source/ngc/filesel.cpp +++ b/source/ngc/filesel.cpp @@ -536,7 +536,7 @@ OpenFAT (int method) { if(ChangeFATInterface(method, NOTSILENT)) { - // change current dir to snes roms directory + // change current dir to vba roms directory sprintf ( currentdir, "%s/%s", ROOTFATDIR, GCSettings.LoadFolder ); // Parse initial root directory and get entries list diff --git a/source/ngc/preferences.cpp b/source/ngc/preferences.cpp index e636360..39b78a6 100644 --- a/source/ngc/preferences.cpp +++ b/source/ngc/preferences.cpp @@ -291,7 +291,9 @@ decodePrefsData (int method) bool SavePrefs (int method, bool silent) { - if(method == METHOD_AUTO) + // there's no point in saving SMB settings TO SMB, because then we'll have no way to load them the next time! + // so instead we'll save using whatever other method is available (eg: SD) + if(method == METHOD_AUTO || method == METHOD_SMB) method = autoSaveMethod(); char filepath[1024];