~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to code/null/null_main.c

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert
  • Date: 2007-01-20 12:28:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070120122809-2yza5ojt7nqiyiam
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
===========================================================================
 
3
Copyright (C) 1999-2005 Id Software, Inc.
 
4
 
 
5
This file is part of Quake III Arena source code.
 
6
 
 
7
Quake III Arena source code is free software; you can redistribute it
 
8
and/or modify it under the terms of the GNU General Public License as
 
9
published by the Free Software Foundation; either version 2 of the License,
 
10
or (at your option) any later version.
 
11
 
 
12
Quake III Arena source code is distributed in the hope that it will be
 
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
GNU General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU General Public License
 
18
along with Quake III Arena source code; if not, write to the Free Software
 
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
===========================================================================
 
21
*/
 
22
// sys_null.h -- null system driver to aid porting efforts
 
23
 
 
24
#include <errno.h>
 
25
#include <stdio.h>
 
26
#include "../qcommon/qcommon.h"
 
27
 
 
28
int                     sys_curtime;
 
29
 
 
30
 
 
31
//===================================================================
 
32
 
 
33
void Sys_BeginStreamedFile( FILE *f, int readAhead ) {
 
34
}
 
35
 
 
36
void Sys_EndStreamedFile( FILE *f ) {
 
37
}
 
38
 
 
39
int Sys_StreamedRead( void *buffer, int size, int count, FILE *f ) {
 
40
        return fread( buffer, size, count, f );
 
41
}
 
42
 
 
43
void Sys_StreamSeek( FILE *f, int offset, int origin ) {
 
44
        fseek( f, offset, origin );
 
45
}
 
46
 
 
47
 
 
48
//===================================================================
 
49
 
 
50
 
 
51
void Sys_mkdir ( const char *path ) {
 
52
}
 
53
 
 
54
void Sys_Error (char *error, ...) {
 
55
        va_list         argptr;
 
56
 
 
57
        printf ("Sys_Error: "); 
 
58
        va_start (argptr,error);
 
59
        vprintf (error,argptr);
 
60
        va_end (argptr);
 
61
        printf ("\n");
 
62
 
 
63
        exit (1);
 
64
}
 
65
 
 
66
void Sys_Quit (void) {
 
67
        exit (0);
 
68
}
 
69
 
 
70
void    Sys_UnloadGame (void) {
 
71
}
 
72
 
 
73
void    *Sys_GetGameAPI (void *parms) {
 
74
        return NULL;
 
75
}
 
76
 
 
77
char *Sys_GetClipboardData( void ) {
 
78
        return NULL;
 
79
}
 
80
 
 
81
int             Sys_Milliseconds (void) {
 
82
        return 0;
 
83
}
 
84
 
 
85
void    Sys_Mkdir (char *path) {
 
86
}
 
87
 
 
88
char    *Sys_FindFirst (char *path, unsigned musthave, unsigned canthave) {
 
89
        return NULL;
 
90
}
 
91
 
 
92
char    *Sys_FindNext (unsigned musthave, unsigned canthave) {
 
93
        return NULL;
 
94
}
 
95
 
 
96
void    Sys_FindClose (void) {
 
97
}
 
98
 
 
99
void    Sys_Init (void) {
 
100
}
 
101
 
 
102
 
 
103
void    Sys_EarlyOutput( char *string ) {
 
104
        printf( "%s", string );
 
105
}
 
106
 
 
107
 
 
108
void main (int argc, char **argv) {
 
109
        Com_Init (argc, argv);
 
110
 
 
111
        while (1) {
 
112
                Com_Frame( );
 
113
        }
 
114
}
 
115
 
 
116