1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * |
---|
5 | * This software was released into the Public Domain. As with most public |
---|
6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
7 | * Jonathan Clark. |
---|
8 | */ |
---|
9 | |
---|
10 | #include "config.h" |
---|
11 | |
---|
12 | #include <stdio.h> |
---|
13 | #include <string.h> |
---|
14 | |
---|
15 | #include "dprint.hpp" |
---|
16 | #include "macs.hpp" |
---|
17 | |
---|
18 | uint8_t major_version=2; |
---|
19 | uint8_t minor_version=00; |
---|
20 | |
---|
21 | extern int get_option(char const *name); |
---|
22 | |
---|
23 | #ifdef __WATCOMC__ |
---|
24 | #include "i86.h" |
---|
25 | |
---|
26 | static void setup() |
---|
27 | { |
---|
28 | union REGS in; |
---|
29 | in.w.ax=0x03; |
---|
30 | int386(0x10,&in,&in); // clear screen, set to text mode |
---|
31 | |
---|
32 | char msg1[100],msg2[100]; |
---|
33 | |
---|
34 | sprintf(msg1," Abuse (Version %d.%02d)\n",major_version,minor_version); |
---|
35 | msg2[0]=0; |
---|
36 | |
---|
37 | int i; |
---|
38 | for (i=0;i<80/2-strlen(msg1)/2;i++) strcat(msg2," "); |
---|
39 | strcat(msg2,msg1); |
---|
40 | dprintf(msg2); |
---|
41 | |
---|
42 | for (i=0;i<80;i++) |
---|
43 | *((uint8_t *)(0xb8000+i*2+1))=0x17; |
---|
44 | } |
---|
45 | #else |
---|
46 | static void setup() |
---|
47 | { |
---|
48 | dprintf(" Abuse (Version %d.%02d)\n",major_version,minor_version); |
---|
49 | } |
---|
50 | #endif |
---|
51 | |
---|
52 | |
---|
53 | void show_verinfo(int argc, char **argv) |
---|
54 | { |
---|
55 | setup(); |
---|
56 | |
---|
57 | if (major_version<1) |
---|
58 | { |
---|
59 | fprintf(stderr,"*******************************************************\n" |
---|
60 | "This is the final beta before we ship.\n" |
---|
61 | "Please report any bugs to abuse-bugs@crack.com. Include\n" |
---|
62 | "game version number and your system specifications.\n" |
---|
63 | "*** Finger abuse-bugs@crack.com or check\n" |
---|
64 | "http://www.crack.com for the latest version number\n" |
---|
65 | "before submitting any bug reports.\n" |
---|
66 | "*******************************************************\n\n"); |
---|
67 | } |
---|
68 | |
---|
69 | } |
---|