- everything compiles and links... but the SDL isn't being configured properly, so if you want to compile, you have to add the SDL stuff by hand to the Makefile for now
This commit is contained in:
parent
ad4f663177
commit
6b6098089a
4
driver.h
4
driver.h
|
@ -7,10 +7,6 @@
|
||||||
#include "git.h"
|
#include "git.h"
|
||||||
|
|
||||||
FILE *FCEUD_UTF8fopen(const char *fn, const char *mode);
|
FILE *FCEUD_UTF8fopen(const char *fn, const char *mode);
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
#endif
|
|
||||||
FILE *FCEUI_UTF8fopen_C(const char *fn, const char *mode);
|
|
||||||
|
|
||||||
|
|
||||||
//mbg 7/23/06
|
//mbg 7/23/06
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
fceud_SOURCES = drivers/pc/input.cpp drivers/pc/main.cpp drivers/pc/sdl.cpp drivers/pc/sdl-joystick.cpp drivers/pc/sdl-sound.cpp drivers/pc/sdl-throttle.cpp drivers/pc/sdl-video.cpp
|
fceud_SOURCES = drivers/pc/input.cpp drivers/pc/main.cpp drivers/pc/sdl.cpp drivers/pc/sdl-joystick.cpp drivers/pc/sdl-sound.cpp drivers/pc/sdl-throttle.cpp drivers/pc/sdl-video.cpp drivers/pc/unix-netplay.cpp
|
||||||
#fceud_SOURCES += drivers/pc/unix-netplay.cpp
|
|
||||||
|
|
||||||
if OPENGL
|
if OPENGL
|
||||||
TMP_OGL = drivers/pc/sdl-opengl.cpp
|
TMP_OGL = drivers/pc/sdl-opengl.cpp
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
#include "../common/args.h"
|
#include "../common/args.h"
|
||||||
#include "../common/config.h"
|
#include "../common/config.h"
|
||||||
|
|
||||||
|
@ -65,8 +62,5 @@ void Giggles(int);
|
||||||
void DoFun(void);
|
void DoFun(void);
|
||||||
|
|
||||||
int FCEUD_NetworkConnect(void);
|
int FCEUD_NetworkConnect(void);
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -548,3 +548,14 @@ FILE *FCEUD_UTF8fopen(const char *fn, const char *mode)
|
||||||
return(fopen(fn,mode));
|
return(fopen(fn,mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char s_linuxCompilerString[4] = "g++";
|
||||||
|
char *FCEUD_GetCompilerString() {
|
||||||
|
return (char *)s_linuxCompilerString;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FCEUD_DebugBreakpoint() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
void FCEUD_TraceInstruction() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../driver.h"
|
#include "../../driver.h"
|
||||||
#include "../common/config.h"
|
#include "../common/config.h"
|
||||||
#include "../common/args.h"
|
#include "../common/args.h"
|
||||||
|
@ -49,7 +45,3 @@ extern long soundbufsize;
|
||||||
|
|
||||||
int CLImain(int argc, char *argv[]);
|
int CLImain(int argc, char *argv[]);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ int FCEUD_NetworkConnect(void)
|
||||||
uint32 sblen;
|
uint32 sblen;
|
||||||
|
|
||||||
sblen = 4 + 16 + 16 + 64 + 1 + (netplaynick?strlen(netplaynick):0);
|
sblen = 4 + 16 + 16 + 64 + 1 + (netplaynick?strlen(netplaynick):0);
|
||||||
sendbuf = malloc(sblen);
|
sendbuf = (uint8 *)malloc(sblen);
|
||||||
memset(sendbuf, 0, sblen);
|
memset(sendbuf, 0, sblen);
|
||||||
|
|
||||||
en32(sendbuf, sblen - 4);
|
en32(sendbuf, sblen - 4);
|
||||||
|
@ -150,7 +150,7 @@ int FCEUD_NetworkConnect(void)
|
||||||
|
|
||||||
md5_starts(&md5);
|
md5_starts(&md5);
|
||||||
md5_update(&md5, CurGame->MD5, 16);
|
md5_update(&md5, CurGame->MD5, 16);
|
||||||
md5_update(&md5, netgamekey, strlen(netgamekey));
|
md5_update(&md5, (uint8 *)netgamekey, strlen(netgamekey));
|
||||||
md5_finish(&md5, md5out);
|
md5_finish(&md5, md5out);
|
||||||
memcpy(sendbuf + 4, md5out, 16);
|
memcpy(sendbuf + 4, md5out, 16);
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ int FCEUD_NetworkConnect(void)
|
||||||
uint8 md5out[16];
|
uint8 md5out[16];
|
||||||
|
|
||||||
md5_starts(&md5);
|
md5_starts(&md5);
|
||||||
md5_update(&md5, netpassword, strlen(netpassword));
|
md5_update(&md5, (uint8 *)netpassword, strlen(netpassword));
|
||||||
md5_finish(&md5, md5out);
|
md5_finish(&md5, md5out);
|
||||||
memcpy(sendbuf + 4 + 16, md5out, 16);
|
memcpy(sendbuf + 4 + 16, md5out, 16);
|
||||||
}
|
}
|
||||||
|
@ -201,7 +201,7 @@ int FCEUD_SendData(void *data, uint32 len)
|
||||||
fgets(buf,1024,stdin);
|
fgets(buf,1024,stdin);
|
||||||
if((f=strrchr(buf,'\n')))
|
if((f=strrchr(buf,'\n')))
|
||||||
*f=0;
|
*f=0;
|
||||||
FCEUI_NetplayText(buf);
|
FCEUI_NetplayText((uint8 *)buf);
|
||||||
}
|
}
|
||||||
send(Socket, data, len ,0);
|
send(Socket, data, len ,0);
|
||||||
return(1);
|
return(1);
|
||||||
|
@ -275,9 +275,9 @@ void FCEUD_NetworkClose(void)
|
||||||
|
|
||||||
void FCEUD_NetplayText(uint8 *text)
|
void FCEUD_NetplayText(uint8 *text)
|
||||||
{
|
{
|
||||||
char *tot = malloc(strlen(text) + 1);
|
char *tot = (char *)malloc(strlen((const char *)text) + 1);
|
||||||
char *tmp;
|
char *tmp;
|
||||||
strcpy(tot, text);
|
strcpy(tot, (const char *)text);
|
||||||
tmp = tot;
|
tmp = tot;
|
||||||
|
|
||||||
while(*tmp)
|
while(*tmp)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
fceu_SOURCES += input/cursor.cpp input/zapper.cpp input/powerpad.cpp input/arkanoid.cpp input/shadow.cpp input/fkb.cpp input/fkb.h input/hypershot.cpp input/mahjong.cpp input/oekakids.cpp input/ftrainer.cpp input/quiz.cpp input/toprider.cpp input/bworld.cpp
|
fceu_SOURCES += input/cursor.cpp input/zapper.cpp input/powerpad.cpp input/arkanoid.cpp input/shadow.cpp input/fkb.cpp input/fkb.h input/hypershot.cpp input/mahjong.cpp input/oekakids.cpp input/ftrainer.cpp input/quiz.cpp input/toprider.cpp input/bworld.cpp input/suborkb.cpp
|
||||||
|
|
Loading…
Reference in New Issue