mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-24 09:01:13 +01:00
small bugfixes
This commit is contained in:
parent
663d73e7b1
commit
030e79e302
@ -281,6 +281,12 @@ bool MakeFilePath(char filepath[], int type, char * filename, int filenum)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(GCSettings.SaveMethod == DEVICE_AUTO)
|
||||||
|
GCSettings.SaveMethod = autoSaveMethod(SILENT);
|
||||||
|
|
||||||
|
if(GCSettings.SaveMethod == DEVICE_AUTO)
|
||||||
|
return false;
|
||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case FILE_SRAM:
|
case FILE_SRAM:
|
||||||
@ -686,7 +692,7 @@ OpenGameList ()
|
|||||||
|
|
||||||
// change current dir to roms directory
|
// change current dir to roms directory
|
||||||
if(device > 0)
|
if(device > 0)
|
||||||
sprintf(browser.dir, "%s%s", pathPrefix[device], GCSettings.LoadFolder);
|
sprintf(browser.dir, "%s%s/", pathPrefix[device], GCSettings.LoadFolder);
|
||||||
else
|
else
|
||||||
browser.dir[0] = 0;
|
browser.dir[0] = 0;
|
||||||
|
|
||||||
|
@ -380,11 +380,9 @@ bool ChangeInterface(int device, bool silent)
|
|||||||
case DEVICE_DVD:
|
case DEVICE_DVD:
|
||||||
mounted = MountDVD(silent);
|
mounted = MountDVD(silent);
|
||||||
break;
|
break;
|
||||||
#ifdef HW_RVL
|
|
||||||
case DEVICE_SMB:
|
case DEVICE_SMB:
|
||||||
mounted = ConnectShare(silent);
|
mounted = ConnectShare(silent);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case DEVICE_MC_SLOTA:
|
case DEVICE_MC_SLOTA:
|
||||||
mounted = TestMC(CARD_SLOTA, silent);
|
mounted = TestMC(CARD_SLOTA, silent);
|
||||||
break;
|
break;
|
||||||
@ -527,6 +525,10 @@ ParseDirectory(bool waitParse)
|
|||||||
while(!IsDeviceRoot(browser.dir))
|
while(!IsDeviceRoot(browser.dir))
|
||||||
{
|
{
|
||||||
char * devEnd = strrchr(browser.dir, '/');
|
char * devEnd = strrchr(browser.dir, '/');
|
||||||
|
|
||||||
|
if(devEnd == NULL)
|
||||||
|
break;
|
||||||
|
|
||||||
devEnd[0] = 0; // strip remaining file listing
|
devEnd[0] = 0; // strip remaining file listing
|
||||||
dirIter = diropen(browser.dir);
|
dirIter = diropen(browser.dir);
|
||||||
if (dirIter)
|
if (dirIter)
|
||||||
|
@ -356,7 +356,7 @@ void GuiFileBrowser::Update(GuiTrigger * t)
|
|||||||
{
|
{
|
||||||
delete fileListIcon[i];
|
delete fileListIcon[i];
|
||||||
fileListIcon[i] = NULL;
|
fileListIcon[i] = NULL;
|
||||||
fileListText[i]->SetPosition(10,0);
|
fileListText[i]->SetPosition(5,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(browserList[browser.pageIndex+i].icon)
|
switch(browserList[browser.pageIndex+i].icon)
|
||||||
|
@ -8,7 +8,15 @@
|
|||||||
* Network and SMB support routines
|
* Network and SMB support routines
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_DOL
|
||||||
|
|
||||||
|
bool
|
||||||
|
ConnectShare (bool silent)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#include <network.h>
|
#include <network.h>
|
||||||
#include <smb.h>
|
#include <smb.h>
|
||||||
|
@ -415,9 +415,9 @@ void LoadPatch()
|
|||||||
AllocSaveBuffer ();
|
AllocSaveBuffer ();
|
||||||
|
|
||||||
memset(patchpath, 0, sizeof(patchpath));
|
memset(patchpath, 0, sizeof(patchpath));
|
||||||
sprintf(patchpath[0], "%s/%s.ips", browser.dir, Memory.ROMFilename);
|
sprintf(patchpath[0], "%s%s.ips", browser.dir, Memory.ROMFilename);
|
||||||
sprintf(patchpath[1], "%s/%s.ups", browser.dir, Memory.ROMFilename);
|
sprintf(patchpath[1], "%s%s.ups", browser.dir, Memory.ROMFilename);
|
||||||
sprintf(patchpath[2], "%s/%s.ppf", browser.dir, Memory.ROMFilename);
|
sprintf(patchpath[2], "%s%s.ppf", browser.dir, Memory.ROMFilename);
|
||||||
|
|
||||||
for(patchtype=0; patchtype<3; patchtype++)
|
for(patchtype=0; patchtype<3; patchtype++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user