mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
This commit is contained in:
parent
530ab87bc5
commit
7cb0371b38
@ -239,7 +239,7 @@ int parseFATdirectory(int method)
|
|||||||
fatdir = diropen(currFATdir);
|
fatdir = diropen(currFATdir);
|
||||||
if (fatdir == NULL)
|
if (fatdir == NULL)
|
||||||
{
|
{
|
||||||
sprintf(msg, "Error opening %s", currFATdir);
|
sprintf(msg, "Couldn't find %s", currFATdir);
|
||||||
WaitPrompt(msg);
|
WaitPrompt(msg);
|
||||||
|
|
||||||
// if we can't open the previous dir, open root dir
|
// if we can't open the previous dir, open root dir
|
||||||
|
@ -657,8 +657,9 @@ void SetControllers ()
|
|||||||
else if (Settings.MouseMaster == true)
|
else if (Settings.MouseMaster == true)
|
||||||
{
|
{
|
||||||
// some games (eg: Mario Paint) don't allow the mouse in port 2
|
// some games (eg: Mario Paint) don't allow the mouse in port 2
|
||||||
S9xSetController (0, CTL_MOUSE, (GCSettings.Mouse == 2), 0, 0, 0);
|
S9xSetController (0, CTL_MOUSE, 0, 0, 0, 0);
|
||||||
S9xSetController (1, CTL_JOYPAD, 1, 0, 0, 0);
|
if (GCSettings.Mouse == 2) S9xSetController (1, CTL_MOUSE, 1, 0, 0, 0);
|
||||||
|
else S9xSetController (1, CTL_JOYPAD, 1, 0, 0, 0);
|
||||||
}
|
}
|
||||||
else if (Settings.JustifierMaster == true)
|
else if (Settings.JustifierMaster == true)
|
||||||
{
|
{
|
||||||
|
@ -250,7 +250,7 @@ LoadSRAM (int method, bool silent)
|
|||||||
|
|
||||||
if(method == METHOD_SD || method == METHOD_USB)
|
if(method == METHOD_SD || method == METHOD_USB)
|
||||||
{
|
{
|
||||||
changeFATInterface(GCSettings.SaveMethod);
|
changeFATInterface(method);
|
||||||
sprintf (filepath, "%s/%s/%s.srm", ROOTFATDIR, GCSettings.SaveFolder, Memory.ROMFilename);
|
sprintf (filepath, "%s/%s/%s.srm", ROOTFATDIR, GCSettings.SaveFolder, Memory.ROMFilename);
|
||||||
offset = LoadBufferFromFAT (filepath, silent);
|
offset = LoadBufferFromFAT (filepath, silent);
|
||||||
}
|
}
|
||||||
@ -310,7 +310,7 @@ SaveSRAM (int method, bool silent)
|
|||||||
{
|
{
|
||||||
if(method == METHOD_SD || method == METHOD_USB)
|
if(method == METHOD_SD || method == METHOD_USB)
|
||||||
{
|
{
|
||||||
changeFATInterface(GCSettings.SaveMethod);
|
changeFATInterface(method);
|
||||||
sprintf (filepath, "%s/%s/%s.srm", ROOTFATDIR, GCSettings.SaveFolder, Memory.ROMFilename);
|
sprintf (filepath, "%s/%s/%s.srm", ROOTFATDIR, GCSettings.SaveFolder, Memory.ROMFilename);
|
||||||
offset = SaveBufferToFAT (filepath, datasize, silent);
|
offset = SaveBufferToFAT (filepath, datasize, silent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user