mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-25 18:21:51 +01:00
change pref saving location for SMB
This commit is contained in:
parent
2ac616d367
commit
75c9951a99
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user