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

version 1.12, 2005/02/07 14:46:10 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 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.12  
changed lines
  Added in v.1.13


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