-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc.cpp
54 lines (50 loc) · 1.19 KB
/
pc.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// PC - Players Connection
// Aaron Brinton
#define cTitle "Player's Connection"
#define cCopyright1 "Copyright 1996 Aaron Brinton and Kevin Bentley"
#define cCopyright2 "Copyright 1996 Kevin Bentley and Aaron Brinton"
#define cVersion "0.70"
#include <assert.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <process.h>
#include "tapp.hpp"
void main(void)
{
randomize();
int iReturn = 0;
int iErrCode = 0;
textmode(C4350);
clrscr();
TApp *App;
App = new TApp;
assert(App != NULL);
iErrCode = App->Startup();
if (iErrCode >= 0)
{
while (iReturn == 0)
iReturn = App->Run();
App->Shutdown();
}
delete App;
textmode(C80);
clrscr();
printf("GMON %s Network Game Monitor\n", cVersion);
if (random(100) < 50)
printf(cCopyright1);
else
printf(cCopyright2);
printf("\nThis is pre-release software, so don't expect much support.\n");
if (iErrCode == -1)
printf("\nCould not find GMON.CFG!\a\n");
if (iErrCode == -2)
printf("\nCould not initialize IPX!\a\n");
if (iReturn < 0)
iReturn = 0;
if (iReturn > 0)
printf("\nExiting with errorlevel %d.\n", iReturn);
exit(iReturn);
}