Last change
on this file since 4 was
2,
checked in by Sam Hocevar, 17 years ago
|
- imported original 0.7.0 tarball
|
File size:
1.3 KB
|
Line | |
---|
1 | #include "dprint.hpp" |
---|
2 | #include <stdio.h> |
---|
3 | #include "macs.hpp" |
---|
4 | #include <string.h> |
---|
5 | |
---|
6 | uchar major_version=2; |
---|
7 | uchar minor_version=00; |
---|
8 | |
---|
9 | extern int get_option(char *name); |
---|
10 | |
---|
11 | #ifdef __WATCOMC__ |
---|
12 | #include "i86.h" |
---|
13 | |
---|
14 | static void setup() |
---|
15 | { |
---|
16 | union REGS in; |
---|
17 | in.w.ax=0x03; |
---|
18 | int386(0x10,&in,&in); // clear screen, set to text mode |
---|
19 | |
---|
20 | char msg1[100],msg2[100]; |
---|
21 | |
---|
22 | sprintf(msg1," Abuse (Version %d.%02d)\n",major_version,minor_version); |
---|
23 | msg2[0]=0; |
---|
24 | |
---|
25 | int i; |
---|
26 | for (i=0;i<80/2-strlen(msg1)/2;i++) strcat(msg2," "); |
---|
27 | strcat(msg2,msg1); |
---|
28 | dprintf(msg2); |
---|
29 | |
---|
30 | for (i=0;i<80;i++) |
---|
31 | *((unsigned char *)(0xb8000+i*2+1))=0x17; |
---|
32 | } |
---|
33 | #else |
---|
34 | static void setup() |
---|
35 | { |
---|
36 | dprintf(" Abuse (Version %d.%02d)\n",major_version,minor_version); |
---|
37 | } |
---|
38 | #endif |
---|
39 | |
---|
40 | |
---|
41 | void show_verinfo(int argc, char **argv) |
---|
42 | { |
---|
43 | setup(); |
---|
44 | |
---|
45 | if (major_version<1) |
---|
46 | { |
---|
47 | fprintf(stderr,"*******************************************************\n" |
---|
48 | "This is the final beta before we ship.\n" |
---|
49 | "Please report any bugs to abuse-bugs@crack.com. Include\n" |
---|
50 | "game version number and your system specifications.\n" |
---|
51 | "*** Finger abuse-bugs@crack.com or check\n" |
---|
52 | "http://www.crack.com for the latest version number\n" |
---|
53 | "before submitting any bug reports.\n" |
---|
54 | "*******************************************************\n\n"); |
---|
55 | } |
---|
56 | |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.