minor updates

This commit is contained in:
dborth 2008-10-03 18:11:32 +00:00
parent d6145586e1
commit 51956d16da
3 changed files with 31 additions and 1 deletions

View File

@ -71,6 +71,13 @@ int NGCFCEU_GameSave(CartInfo *LocalHWInfo, int operation)
bool SaveRAM (int method, bool silent)
{
if(nesGameType == 4)
{
if(!silent)
WaitPrompt((char *)"Saving is not available for FDS games!");
return false;
}
ShowAction ((char*) "Saving...");
if(method == METHOD_AUTO)
@ -129,6 +136,13 @@ bool SaveRAM (int method, bool silent)
bool LoadRAM (int method, bool silent)
{
if(nesGameType == 4)
{
if(!silent)
WaitPrompt((char *)"Saving is not available for FDS games!");
return false;
}
ShowAction ((char*) "Loading...");
if(method == METHOD_AUTO)

View File

@ -270,6 +270,13 @@ int GCFCEUSS_Save()
bool SaveState (int method, bool silent)
{
if(nesGameType == 4)
{
if(!silent)
WaitPrompt((char *)"Saving is not available for FDS games!");
return false;
}
ShowAction ((char*) "Saving...");
if(method == METHOD_AUTO)
@ -319,6 +326,13 @@ bool SaveState (int method, bool silent)
bool LoadState (int method, bool silent)
{
if(nesGameType == 4)
{
if(!silent)
WaitPrompt((char *)"Saving is not available for FDS games!");
return false;
}
ShowAction ((char*) "Loading...");
if(method == METHOD_AUTO)

View File

@ -304,7 +304,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];