change pref saving location for SMB

This commit is contained in:
dborth 2008-10-03 21:07:01 +00:00
parent 2ac616d367
commit 75c9951a99
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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];