- removed conv.c from the fceu build

- got rid of the NETWORK defines... they shouldn't be relevant any more
This commit is contained in:
soules 2006-07-28 16:07:14 +00:00
parent d391673ce1
commit de01f68da5
6 changed files with 0 additions and 23 deletions

View File

@ -458,9 +458,7 @@ static void DriverKill(void)
void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count) void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
{ {
#ifdef NETWORK
extern int FCEUDnetplay; extern int FCEUDnetplay;
#endif
int ocount = Count; int ocount = Count;
// apply frame scaling to Count // apply frame scaling to Count
@ -506,7 +504,6 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
} }
} }
} //else puts("Skipped"); } //else puts("Skipped");
#ifdef NETWORK
else if(!NoWaiting && FCEUDnetplay && (uflow || tmpcan >= (Count * 1.8))) else if(!NoWaiting && FCEUDnetplay && (uflow || tmpcan >= (Count * 1.8)))
{ {
if(Count > tmpcan) Count=tmpcan; if(Count > tmpcan) Count=tmpcan;
@ -517,7 +514,6 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
tmpcan -= Count; tmpcan -= Count;
} }
} }
#endif
} }
else else

View File

@ -4,9 +4,7 @@
#include "sdl.h" #include "sdl.h"
#include "sdl-video.h" #include "sdl-video.h"
#ifdef NETWORK
#include "unix-netplay.h" #include "unix-netplay.h"
#endif
DSETTINGS Settings; DSETTINGS Settings;
CFGSTRUCT DriverConfig[]={ CFGSTRUCT DriverConfig[]={
@ -29,13 +27,11 @@ CFGSTRUCT DriverConfig[]={
AC(_fullscreen), AC(_fullscreen),
AC(_xres), AC(_xres),
AC(_yres), AC(_yres),
#ifdef NETWORK
ACS(netplaynick), ACS(netplaynick),
AC(netlocalplayers), AC(netlocalplayers),
AC(tport), AC(tport),
ACS(netpassword), ACS(netpassword),
ACS(netgamekey), ACS(netgamekey),
#endif
ENDCFGSTRUCT ENDCFGSTRUCT
}; };
@ -85,13 +81,11 @@ ARGPSTRUCT DriverArgs[]={
{"-yres",0,&_yres,0}, {"-yres",0,&_yres,0},
{"-fs",0,&_fullscreen,0}, {"-fs",0,&_fullscreen,0},
//{"-fshack",0,&_fshack,0x4001}, //{"-fshack",0,&_fshack,0x4001},
#ifdef NETWORK
{"-connect",0,&netplayhost,0x4001}, {"-connect",0,&netplayhost,0x4001},
{"-netport",0,&tport,0}, {"-netport",0,&tport,0},
{"-netlocalplayers",0,&netlocalplayers,0}, {"-netlocalplayers",0,&netlocalplayers,0},
{"-netnick",0,&netplaynick,0x4001}, {"-netnick",0,&netplaynick,0x4001},
{"-netpassword",0,&netpassword,0x4001}, {"-netpassword",0,&netpassword,0x4001},
#endif
{0,0,0,0} {0,0,0,0}
}; };

View File

@ -1,4 +1,3 @@
#ifdef NETWORK
/* FCE Ultra - NES/Famicom Emulator /* FCE Ultra - NES/Famicom Emulator
* *
* Copyright notice for this file: * Copyright notice for this file:
@ -317,5 +316,3 @@ void FCEUD_NetplayText(uint8 *text)
puts(tot); puts(tot);
free(tot); free(tot);
} }
#endif

View File

@ -1,9 +1,6 @@
#ifdef NETWORK
extern char *netplaynick; extern char *netplaynick;
extern char *netplayhost; extern char *netplayhost;
extern char *netpassword; extern char *netpassword;
extern char *netgamekey; extern char *netgamekey;
extern int tport; extern int tport;
extern int netlocalplayers; extern int netlocalplayers;
#endif

View File

@ -88,13 +88,11 @@ int FCEUNET_SendCommand(uint8 cmd, uint32 len)
buf[0] = 0xFF; buf[0] = 0xFF;
FCEU_en32lsb(&buf[numlocal], len); FCEU_en32lsb(&buf[numlocal], len);
buf[numlocal + 4] = cmd; buf[numlocal + 4] = cmd;
#ifdef NETWORK
if(!FCEUD_SendData(buf,numlocal + 1 + 4)) if(!FCEUD_SendData(buf,numlocal + 1 + 4))
{ {
NetError(); NetError();
return(0); return(0);
} }
#endif
return(1); return(1);
} }
@ -135,7 +133,6 @@ int FCEUNET_SendFile(uint8 cmd, char *fn)
len = clen + 4; len = clen + 4;
#ifdef NETWORK
if(!FCEUNET_SendCommand(cmd,len)) if(!FCEUNET_SendCommand(cmd,len))
{ {
free(cbuf); free(cbuf);
@ -147,7 +144,6 @@ int FCEUNET_SendFile(uint8 cmd, char *fn)
free(cbuf); free(cbuf);
return(0); return(0);
} }
#endif
free(cbuf); free(cbuf);
return(1); return(1);
@ -217,7 +213,6 @@ void NetplayUpdate(uint8 *joyp)
/* This shouldn't happen, but just in case. 0xFF is used as a command escape elsewhere. */ /* This shouldn't happen, but just in case. 0xFF is used as a command escape elsewhere. */
if(joypb[0] == 0xFF) if(joypb[0] == 0xFF)
joypb[0] = 0xF; joypb[0] = 0xF;
#ifdef NETWORK
if(!netdcount) if(!netdcount)
if(!FCEUD_SendData(joypb,numlocal)) if(!FCEUD_SendData(joypb,numlocal))
{ {
@ -325,7 +320,6 @@ void NetplayUpdate(uint8 *joyp)
break; break;
} }
} while(buf[4]); } while(buf[4]);
#endif
netdcount=(netdcount+1)%netdivisor; netdcount=(netdcount+1)%netdivisor;

View File

@ -1,6 +1,5 @@
Import('file_list') Import('file_list')
my_list = Split(""" my_list = Split("""
conv.c
""") """)
for x in range(len(my_list)): for x in range(len(my_list)):
my_list[x] = 'palettes/' + my_list[x] my_list[x] = 'palettes/' + my_list[x]