mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
minor updates
This commit is contained in:
parent
d6145586e1
commit
51956d16da
@ -71,6 +71,13 @@ int NGCFCEU_GameSave(CartInfo *LocalHWInfo, int operation)
|
|||||||
|
|
||||||
bool SaveRAM (int method, bool silent)
|
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...");
|
ShowAction ((char*) "Saving...");
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
if(method == METHOD_AUTO)
|
||||||
@ -129,6 +136,13 @@ bool SaveRAM (int method, bool silent)
|
|||||||
|
|
||||||
bool LoadRAM (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...");
|
ShowAction ((char*) "Loading...");
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
if(method == METHOD_AUTO)
|
||||||
|
@ -270,6 +270,13 @@ int GCFCEUSS_Save()
|
|||||||
|
|
||||||
bool SaveState (int method, bool silent)
|
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...");
|
ShowAction ((char*) "Saving...");
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
if(method == METHOD_AUTO)
|
||||||
@ -319,6 +326,13 @@ bool SaveState (int method, bool silent)
|
|||||||
|
|
||||||
bool LoadState (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...");
|
ShowAction ((char*) "Loading...");
|
||||||
|
|
||||||
if(method == METHOD_AUTO)
|
if(method == METHOD_AUTO)
|
||||||
|
@ -304,7 +304,9 @@ decodePrefsData (int method)
|
|||||||
bool
|
bool
|
||||||
SavePrefs (int method, bool silent)
|
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();
|
method = autoSaveMethod();
|
||||||
|
|
||||||
char filepath[1024];
|
char filepath[1024];
|
||||||
|
Loading…
Reference in New Issue
Block a user