Initial commit.

This commit is contained in:
Jim Gray
2013-04-04 14:32:05 -07:00
parent ba5c81da32
commit d71d53e8ec
2180 changed files with 1393544 additions and 1 deletions

44
code/null/mac_net.c Normal file
View File

@@ -0,0 +1,44 @@
#include "../game/q_shared.h"
#include "../qcommon/qcommon.h"
/*
=============
NET_StringToAdr
localhost
idnewt
idnewt:28000
192.246.40.70
192.246.40.70:28000
=============
*/
qboolean NET_StringToAdr (char *s, netadr_t *a)
{
if (!strcmp (s, "localhost")) {
memset (a, 0, sizeof(*a));
a->type = NA_LOOPBACK;
return true;
}
return false;
}
/*
==================
Sys_SendPacket
==================
*/
void Sys_SendPacket( int length, void *data, netadr_t to ) {
}
/*
==================
Sys_GetPacket
Never called by the game logic, just the system event queing
==================
*/
qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
return false;
}

39
code/null/null_glimp.c Normal file
View File

@@ -0,0 +1,39 @@
#include "../renderer/tr_local.h"
qboolean ( * qwglSwapIntervalEXT)( int interval );
void ( * qglMultiTexCoord2fARB )( enum texture, float s, float t );
void ( * qglActiveTextureARB )( enum texture );
void ( * qglClientActiveTextureARB )( enum texture );
void ( * qglLockArraysEXT)( int, int);
void ( * qglUnlockArraysEXT) ( void );
void GLimp_EndFrame( void ) {
}
int GLimp_Init( void )
{
}
void GLimp_Shutdown( void ) {
}
rserr_t GLimp_SetMode( const char *drivername, int *pWidth, int *pHeight, int mode, qboolean fullscreen ) {
}
void GLimp_EnableLogging( qboolean enable ) {
}
void GLimp_LogComment( char *comment ) {
}
qboolean QGL_Init( const char *dllname ) {
return true;
}
void QGL_Shutdown( void ) {
}

94
code/null/null_main.c Normal file
View File

@@ -0,0 +1,94 @@
// sys_null.h -- null system driver to aid porting efforts
#include "../qcommon/qcommon.h"
#include "errno.h"
int sys_curtime;
//===================================================================
void Sys_BeginStreamedFile( fileHandle_t f, int readAhead ) {
}
void Sys_EndStreamedFile( fileHandle_t f ) {
}
int Sys_StreamedRead( void *buffer, int size, int count, fileHandle_t f ) {
return FS_Read( buffer, size, count, f );
}
void Sys_StreamSeek( fileHandle_t f, int offset, int origin ) {
FS_Seek( f, offset, origin );
}
//===================================================================
void Sys_mkdir (char *path) {
}
void Sys_Error (char *error, ...) {
va_list argptr;
printf ("Sys_Error: ");
va_start (argptr,error);
vprintf (error,argptr);
va_end (argptr);
printf ("\n");
exit (1);
}
void Sys_Quit (void) {
exit (0);
}
void Sys_UnloadGame (void) {
}
void *Sys_GetGameAPI (void *parms) {
return NULL;
}
char *Sys_GetClipboardData( void ) {
return NULL;
}
int Sys_Milliseconds (void) {
return 0;
}
void Sys_Mkdir (char *path) {
}
char *Sys_FindFirst (char *path, unsigned musthave, unsigned canthave) {
return NULL;
}
char *Sys_FindNext (unsigned musthave, unsigned canthave) {
return NULL;
}
void Sys_FindClose (void) {
}
void Sys_Init (void) {
}
void Sys_EarlyOutput( char *string ) {
printf( "%s", string );
}
void main (int argc, char **argv) {
Com_Init (argc, argv);
while (1) {
Com_Frame( );
}
}

43
code/null/null_net.c Normal file
View File

@@ -0,0 +1,43 @@
#include "../qcommon/qcommon.h"
/*
=============
NET_StringToAdr
localhost
idnewt
idnewt:28000
192.246.40.70
192.246.40.70:28000
=============
*/
qboolean NET_StringToAdr (char *s, netadr_t *a)
{
if (!strcmp (s, "localhost")) {
memset (a, 0, sizeof(*a));
a->type = NA_LOOPBACK;
return true;
}
return false;
}
/*
==================
Sys_SendPacket
==================
*/
void Sys_SendPacket( int length, void *data, netadr_t to ) {
}
/*
==================
Sys_GetPacket
Never called by the game logic, just the system event queing
==================
*/
qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
return false;
}

27
code/null/null_snddma.c Normal file
View File

@@ -0,0 +1,27 @@
// snddma_null.c
// all other sound mixing is portable
#include "../client/client.h"
qboolean SNDDMA_Init(void)
{
return qfalse;
}
int SNDDMA_GetDMAPos(void)
{
return 0;
}
void SNDDMA_Shutdown(void)
{
}
void SNDDMA_BeginPainting (void)
{
}
void SNDDMA_Submit(void)
{
}