source: abuse/tags/pd/macabuse/src/version.c @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#include "dprint.hpp"
2#include <stdio.h>
3#include "macs.hpp"
4#include <string.h>
5
6uchar major_version=2;
7uchar minor_version=00;
8
9extern int get_option(char *name);
10
11#ifdef __WATCOMC__
12#include "i86.h"
13
14static 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
34static void setup()
35{
36  dprintf(" Abuse (Version %d.%02d)\n",major_version,minor_version);
37}
38#endif
39
40
41void show_verinfo(int argc, char **argv)
42{
43  setup();
44 
45  if (major_version<1)
46  {
47    dprintf("*******************************************************\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.