Last change
on this file since 29 was
29,
checked in by Sam Hocevar, 15 years ago
|
- Fix header inclusion order in version.cpp, thanks to Kees Cook.
|
File size:
1.3 KB
|
Rev | Line | |
---|
[29] | 1 | #include <stdio.h> |
---|
| 2 | #include <string.h> |
---|
[2] | 3 | #include "dprint.hpp" |
---|
| 4 | #include "macs.hpp" |
---|
| 5 | |
---|
[17] | 6 | uint8_t major_version=2; |
---|
| 7 | uint8_t minor_version=00; |
---|
[2] | 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++) |
---|
[17] | 31 | *((uint8_t *)(0xb8000+i*2+1))=0x17; |
---|
[2] | 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.