FDS corrections

This commit is contained in:
dborth 2009-07-20 07:14:18 +00:00
parent aec5667532
commit f2773a5b9c
2 changed files with 29 additions and 24 deletions

View File

@ -802,7 +802,7 @@ if (!disableBatteryLoading)
diskdatao[x]=(uint8 *)FCEU_malloc(65500);
memcpy(diskdatao[x],diskdata[x],65500);
}
#ifndef GEKKO
if((tp=FCEU_fopen(fn,0,"rb",0)))
{
FreeFDSMemory();
@ -816,6 +816,7 @@ if (!disableBatteryLoading)
DiskWritten=1; /* For save state handling. */
}
free(fn);
#endif
}
GameInfo->type=GIT_FDS;
@ -862,6 +863,10 @@ if (!disableBatteryLoading)
void FDSClose(void)
{
#ifdef GEKKO
FreeFDSMemory();
return;
#endif
FILE *fp;
int x;
char *fn=strdup(FCEU_MakeFName(FCEUMKF_FDS,0,0).c_str());

View File

@ -283,7 +283,7 @@ copy_to_xfb (u32 arg)
switch(FDSSwitchRequested)
{
case 1:
// FCEUI_FDSEject(); // eject disk
FCEUI_FDSInsert(); // eject disk
FDSSwitchRequested++;
break;
case 2: