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

version 1.11, 2004/07/15 13:48:39 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 334  BOOL hostdrvs_newrealpath(HDRVPATH *hdp, Line 331  BOOL hostdrvs_newrealpath(HDRVPATH *hdp,
                 }                  }
                 *p = '\0';                  *p = '\0';
                 // ここで SJIS->OEMコードに未変換!                  // ここで SJIS->OEMコードに未変換!
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
                 codecnv_sjis2euc(oemname, NELEMENTS(oemname), dosname, (UINT)-1);                  oemtext_sjistooem(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));

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


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