Diff for /np2/win9x/sstpmsg.cpp between versions 1.9 and 1.10

version 1.9, 2005/03/19 20:46:07 version 1.10, 2005/03/20 13:12:49
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "strres.h"  #include        "strres.h"
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.h"
 #include        "scrnmng.h"  #include        "scrnmng.h"
 #include        "sysmng.h"  #include        "sysmng.h"
 #include        "sstp.h"  #include        "sstp.h"
Line 10 Line 11
 #include        "sound.h"  #include        "sound.h"
 #include        "fmboard.h"  #include        "fmboard.h"
 #include        "np2info.h"  #include        "np2info.h"
 #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2)  
 #include        "oemtext.h"  
 #endif  
   
   
 static const OEMCHAR cr[] = OEMTEXT("\\n");  static const OEMCHAR cr[] = OEMTEXT("\\n");
Line 314  static OEMCHAR *sstpsolve(OEMCHAR *buf,  Line 312  static OEMCHAR *sstpsolve(OEMCHAR *buf, 
   
 // -------------------------------  // -------------------------------
   
   static const UINT8 *prcs[4] = {k_keropi, k_winx68k, k_t98next, k_anex86};
   
 static int check_keropi(void) {  static int check_keropi(void) {
   
         OEMCHAR buf[64];          UINT    i;
   
         sstpsolve(buf, k_keropi);          for (i=0; i<NELEMENTS(prcs); i++) {
         if (FindWindow(buf, NULL)) {                  OEMCHAR buf[64];
                 return(1);                  sstpsolve(buf, prcs[i]);
         }  #if defined(OSLANG_UTF8)
         sstpsolve(buf, k_winx68k);                  TCHAR tchr[64];
         if (FindWindow(buf, NULL)) {                  oemtotchar(tchr, NELEMENTS(tchr), buf, -1);
                 return(2);  #else
         }                  const TCHAR *tchr = buf;
         sstpsolve(buf, k_t98next);  #endif
         if (FindWindow(NULL, buf)) {                  if (FindWindow(tchr, NULL)) {
                 return(3);                          return(i + 1);
         }                  }
         sstpsolve(buf, k_anex86);  
         if (FindWindow(NULL, buf)) {  
                 return(4);  
         }          }
         return(0);          return(0);
 }  }
Line 342  static int check_keropi(void) { Line 339  static int check_keropi(void) {
   
 void sstpmsg_welcome(void) {  void sstpmsg_welcome(void) {
   
         int             kero;          UINT    kero;
         OEMCHAR *p;          OEMCHAR *p;
         OEMCHAR buf[512];          OEMCHAR buf[512];
   
Line 389  void sstpmsg_welcome(void) { Line 386  void sstpmsg_welcome(void) {
                                         case 0:                                          case 0:
                                                 p = sstpsolve(p, s_keropi1);                                                  p = sstpsolve(p, s_keropi1);
                                                 break;                                                  break;
   
                                         case 1:                                          case 1:
                                                 p = sstpsolve(p, s_keropi2);                                                  p = sstpsolve(p, s_keropi2);
                                                 break;                                                  break;
   
                                         default:                                          default:
                                                 p = sstpsolve(p, s_keropi3);                                                  p = sstpsolve(p, s_keropi3);
                                                 break;                                                  break;

Removed from v.1.9  
changed lines
  Added in v.1.10


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