*/
/* This file contains or coordinates all of the code necessary to compile
- on a UNIX system that can use svgalib, such as FreeBSD and Linux.
+ on a UNIX system that can use svgalib, such as FreeBSD and Linux.
This code is not guaranteed to compile on FreeBSD, though.
*/
#include "dface.h"
static int ntsccol=0,ntschue=-1,ntsctint=-1;
-static int soundvol=100;
+/*static*/ int soundvol=100;
static int inited=0;
int srendlinev[2]={8,0};
static char *cpalette=0;
static void LoadCPalette(void)
{
- char tmpp[192];
+ uint8 tmpp[192];
FILE *fp;
if(!(fp=fopen(cpalette,"rb")))
};
static void SaveConfig(void)
-{
+{
char tdir[2048];
sprintf(tdir,"%s"PSS"fceu.cfg",BaseDirectory);
DriverInterface(DES_GETNTSCTINT,&ntsctint);
{
static char *cortab[5]={"none","gamepad","zapper","powerpad","arkanoid"};
static int cortabi[5]={SI_NONE,SI_GAMEPAD,
- SI_ZAPPER,SI_POWERPAD,SI_ARKANOID};
+ SI_ZAPPER,SI_POWERPADA,SI_ARKANOID};
static char *fccortab[5]={"none","arkanoid","shadow","4player","fkb"};
static int fccortabi[5]={SIFC_NONE,SIFC_ARKANOID,SIFC_SHADOW,
SIFC_4PLAYER,SIFC_FKB};
FCEUI_SetRenderedLines(srendlinev[0],erendlinev[0],srendlinev[1],erendlinev[1]);
FCEUI_SetSoundVolume(soundvol);
- DriverInterface(DES_NTSCCOL,&ntsccol);
+ //DriverInterface(DES_NTSCCOL,&ntsccol);
DoDriverArgs();
if(fcexp)
if(!inputa[x])
continue;
- for(y=0;y<5;y++)
+ for(y=0;y<5;y++)
{
if(!strncmp(cortab[y],inputa[x],8))
{
free(inputa[x]);
}
}
- }
+ }
}
#include "usage.h"
FCEUI_SetBaseDirectory(BaseDirectory);
CreateDirs();
- if(argc<=1)
+ if(argc<=1)
{
ShowUsage(argv[0]);
return 1;
}
LoadConfig();
DoArgs(argc-2,&argv[1]);
+ FCEUI_SetNTSCTH(ntsccol, ntsctint, ntschue);
if(cpalette)
LoadCPalette();
if(InitSound())
inited=0;
}
-void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
+void FCEUD_Update(uint8 *XBuf, int16 *Buffer, int Count)
{
if(!Count && !NoWaiting && !(eoptions&EO_NOTHROTTLE))
SpeedThrottle();