OBJDRIVER = ${B}minimal.o ${B}cpuctrl.o ${B}squidgehack.o ${B}asmutils.o ${B}gp2x.o ${B}main.o ${B}throttle.o \
${B}unix-netplay.o ${B}gp2x-sound.o ${B}gp2x-video.o ${B}usbjoy.o ${B}menu.o ${B}fonts.o ${B}readpng.o \
drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} \
- ppu.o movie.o fceu098.o ppu098.o sound098.o filter098.o
+ ppu.o movie.o fceu098.o ppu098.o
LDRIVER += -lm -lz -lpng -static -Wl,-Map=fceu.map
ifeq ($(asm_6502),1)
OBJDRIVER = drivers/gp2x_test/minimal.o drivers/gp2x_test/throttle.o ${B}gp2x.o ${B}main.o \
${B}unix-netplay.o ${B}gp2x-sound.o ${B}gp2x-video.o ${B}usbjoy.o ${B}menu.o ${B}fonts.o ${B}readpng.o \
drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} \
- ppu.o movie.o fceu098.o ppu098.o sound098.o filter098.o
+ ppu.o movie.o fceu098.o ppu098.o
LDRIVER += -lm -lz -lpng `sdl-config --libs`
OBJDRIVER += x6502.o
{
EXPREGS[0]=EXPREGS[1]=EXPREGS[2]=0;
GenMMC3Power();
- //Write_IRQFM(0x4017,0x40);
- {
- writefunc f = GetWriteHandler(0x4017);
- f(0x4017,0x40);
- }
+ Write_IRQFM(0x4017,0x40);
SetReadHandler(0x5000,0x5FFF,M187Read);
SetWriteHandler(0x5000,0x5FFF,M187WriteLo);
SetWriteHandler(0x8000,0x8000,M187Write8000);
#include "version.h"
#include "fce.h"
#include "sound.h"
-#include "sound098.h"
#define INESPRIV // Take this out when old save state support is removed in a future version.
#include "ines.h"
#include "svga.h"
{ 0, }
};
-extern SFORMAT FCEUSND_STATEINFO[]; // TODO: unify?
-#define get_snd_sf() (use098code ? FCEUSND_STATEINFO : SFSND)
static int SubWrite(FILE *st, SFORMAT *sf)
break;
case 3:if(!ReadStateChunk(st,FCEUPPU_STATEINFO,size)) ret=0;break;
case 4:if(!ReadStateChunk(st,FCEUCTRL_STATEINFO,size)) ret=0;break;
- case 5:if(!ReadStateChunk(st,get_snd_sf(),size)) ret=0;break;
+ case 5:if(!ReadStateChunk(st,SFSND,size)) ret=0;break;
case 0x10:if(!ReadStateChunk(st,SFMDATA,size)) ret=0;break;
default:printf("ReadStateChunks: unknown chunk: %i\n", t);
if(fseek(st,size,SEEK_CUR)<0) goto endo;break;
header[3]=VERSION_NUMERIC;
fwrite(header,1,16,st);
- FCEUSND_SaveState();
#ifdef ASM_6502
asmcpu_pack();
#endif
totalsize+=WriteStateChunk(st,2,SFCPUC);
totalsize+=WriteStateChunk(st,3,FCEUPPU_STATEINFO);
totalsize+=WriteStateChunk(st,4,FCEUCTRL_STATEINFO);
- totalsize+=WriteStateChunk(st,5,get_snd_sf());
+ totalsize+=WriteStateChunk(st,5,SFSND);
if(SPreSave) SPreSave();
if(x)
{
okload:
- FCEUSND_LoadState(header[3]);
TempAddr=TempAddrT;
RefreshAddr=RefreshAddrT;