Diff for /np2/win9x/Attic/np2info.cpp between versions 1.2 and 1.7

version 1.2, 2003/10/21 11:22:05 version 1.7, 2004/01/25 05:41:29
Line 3 Line 3
 #include        "np2.h"  #include        "np2.h"
 #include        "scrnmng.h"  #include        "scrnmng.h"
 #include        "np2info.h"  #include        "np2info.h"
 #include        "i286.h"  #include        "cpucore.h"
 #include        "memory.h"  
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "bios.h"  #include        "bios.h"
Line 42  static const char str_egc[] = "EGC CG-Wi Line 41  static const char str_egc[] = "EGC CG-Wi
 static const char *grcgchip[4] = {str_null, str_grcg, str_grcgcgwin, str_egc};  static const char *grcgchip[4] = {str_null, str_grcg, str_grcgcgwin, str_egc};
   
   
 extern  int             usesound;  
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
Line 69  static void info_ver(char *str, int maxl Line 66  static void info_ver(char *str, int maxl
   
 static void info_cpu(char *str, int maxlen) {  static void info_cpu(char *str, int maxlen) {
   
         milstr_ncpy(str, (CPUTYPE & CPUTYPE_V30)?str_V30:str_i286, maxlen);          milstr_ncpy(str, (CPU_TYPE & CPUTYPE_V30)?str_V30:str_i286, maxlen);
 }  }
   
 static void info_clock(char *str, int maxlen) {  static void info_clock(char *str, int maxlen) {
Line 77  static void info_clock(char *str, int ma Line 74  static void info_clock(char *str, int ma
         UINT32  clock;          UINT32  clock;
         char    clockstr[16];          char    clockstr[16];
   
         clock = (pc.realclock + 50000) / 100000;          clock = (pccore.realclock + 50000) / 100000;
         SPRINTF(clockstr, str_clockfmt, clock/10, clock % 10);          SPRINTF(clockstr, str_clockfmt, clock/10, clock % 10);
         milstr_ncpy(str, clockstr, maxlen);          milstr_ncpy(str, clockstr, maxlen);
 }  }
   
 static void info_base(char *str, int maxlen) {  static void info_base(char *str, int maxlen) {
   
         milstr_ncpy(str, (pc.baseclock == PCBASECLOCK25)?str_5MHz:str_8MHz,          milstr_ncpy(str, (pccore.baseclock == PCBASECLOCK25)?str_5MHz:str_8MHz,
                                                                                                                                         maxlen);                                                                                                                                          maxlen);
 }  }
   
Line 100  static void info_mem1(char *str, int max Line 97  static void info_mem1(char *str, int max
         else {          else {
                 memsize = 640;                  memsize = 640;
         }          }
         if (extmem.maxmem > 1) {          if (pccore.extmem) {
                 SPRINTF(memstr, str_memfmt2, memsize, (extmem.maxmem - 1) * 1024);                  SPRINTF(memstr, str_memfmt2, memsize, pccore.extmem * 1024);
         }          }
         else {          else {
                 SPRINTF(memstr, str_memfmt, memsize);                  SPRINTF(memstr, str_memfmt, memsize);
Line 121  static void info_mem2(char *str, int max Line 118  static void info_mem2(char *str, int max
         else {          else {
                 memsize = 640;                  memsize = 640;
         }          }
         if (extmem.maxmem > 1) {          memsize += pccore.extmem * 1024;
                 memsize += (extmem.maxmem - 1) * 1024;  
         }  
         SPRINTF(memstr, str_memfmt, memsize);          SPRINTF(memstr, str_memfmt, memsize);
         milstr_ncpy(str, memstr, maxlen);          milstr_ncpy(str, memstr, maxlen);
 }  }
Line 140  static void info_mem3(char *str, int max Line 135  static void info_mem3(char *str, int max
         else {          else {
                 memsize = 640;                  memsize = 640;
         }          }
         if (extmem.maxmem > 1) {          if (pccore.extmem > 1) {
                 SPRINTF(memstr, str_memfmt3, extmem.maxmem - 1, memsize / 100);                  SPRINTF(memstr, str_memfmt3, pccore.extmem, memsize / 100);
         }          }
         else {          else {
                 SPRINTF(memstr, str_memfmt, memsize);                  SPRINTF(memstr, str_memfmt, memsize);

Removed from v.1.2  
changed lines
  Added in v.1.7


RetroPC.NET-CVS <cvs@retropc.net>