Diff for /np2/generic/hostdrvs.c between versions 1.10 and 1.13

version 1.10, 2004/06/20 03:40:31 version 1.13, 2005/02/12 12:13:57
Line 2 Line 2
   
 #if defined(SUPPORT_HOSTDRV)  #if defined(SUPPORT_HOSTDRV)
   
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
 #include        "codecnv.h"  #include        "oemtext.h"
 #endif  #endif
 #include        "dosio.h"  #include        "dosio.h"
 #include        "pccore.h"  #include        "pccore.h"
Line 13 Line 13
   
 static const HDRVDIR hddroot = {"           ", 0, 0, 0, 0x10, {0}, {0}};  static const HDRVDIR hddroot = {"           ", 0, 0, 0, 0x10, {0}, {0}};
   
 static const BYTE dospathchr[] = {  static const UINT8 dospathchr[] = {
                         0xfa, 0x23,             // '&%$#"!  /.-,+*)(                          0xfa, 0x23,             // '&%$#"!  /.-,+*)(
                         0xff, 0x03,             // 76543210 ?>=<;:98                          0xff, 0x03,             // 76543210 ?>=<;:98
                         0xff, 0xff,             // GFEDCBA@ ONMLKJIH                          0xff, 0xff,             // GFEDCBA@ ONMLKJIH
Line 83  static BOOL realname2fcb(char *fcbname,  Line 83  static BOOL realname2fcb(char *fcbname, 
         char    *realname;          char    *realname;
         char    *ext;          char    *ext;
   
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
         codecnv_euc2sjis(sjis, sizeof(sjis), fli->path, NELEMENTS(fli->path));          oemtext_oemtosjis(sjis, sizeof(sjis), fli->path, NELEMENTS(fli->path));
         realname = sjis;  
 #elif defined(OSLANG_UTF8)  
         oemtext_oem2sjis(sjis, sizeof(sjis), fli->path, NELEMENTS(fli->path));  
         realname = sjis;          realname = sjis;
 #else  #else
         realname = fli->path;          realname = fli->path;
Line 303  BOOL hostdrvs_newrealpath(HDRVPATH *hdp, Line 300  BOOL hostdrvs_newrealpath(HDRVPATH *hdp,
         char            dosname[16];          char            dosname[16];
         UINT            i;          UINT            i;
         char            *p;          char            *p;
 #if 0  
 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
         OEMCHAR         oemname[64];          OEMCHAR         oemname[64];
 #endif  #endif
 #endif  
   
         if ((hostdrvs_getrealdir(path, NELEMENTS(path), fcb, dospath)          if ((hostdrvs_getrealdir(path, NELEMENTS(path), fcb, dospath)
                                                                                                                         != SUCCESS) ||                                                                                                                          != SUCCESS) ||
Line 335  BOOL hostdrvs_newrealpath(HDRVPATH *hdp, Line 330  BOOL hostdrvs_newrealpath(HDRVPATH *hdp,
                         }                          }
                 }                  }
                 *p = '\0';                  *p = '\0';
 #if 1   // ここで SJIS->OEMコードに未変換!                  // ここで SJIS->OEMコードに未変換!
                 file_catname(path, dosname, NELEMENTS(path));  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
 #else                  oemtext_sjistooem(oemname, NELEMENTS(oemname), dosname, (UINT)-1);
 #if defined(OSLANG_EUC)  
                 codecnv_sjis2euc(oemname, NELEMENTS(oemname), dosname, (UINT)-1);  
                 file_catname(path, oemname, NELEMENTS(path));  
 #elif defined(OSLANG_UTF8)  
                 oemtext_sjis2oem(oemname, NELEMENTS(oemname), dosname, (UINT)-1);  
                 file_catname(path, oemname, NELEMENTS(path));                  file_catname(path, oemname, NELEMENTS(path));
 #else  #else
                 file_catname(path, dosname, NELEMENTS(path));                  file_catname(path, dosname, NELEMENTS(path));
 #endif  #endif
 #endif  
                 if (hdp) {                  if (hdp) {
                         ZeroMemory(&hdp->di, sizeof(hdp->di));                          ZeroMemory(&hdp->di, sizeof(hdp->di));
                         CopyMemory(hdp->di.fcbname, fcb, 11);                          CopyMemory(hdp->di.fcbname, fcb, 11);

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


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