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

version 1.13, 2005/02/12 12:13:57 version 1.14, 2005/02/14 06:25:31
Line 2 Line 2
   
 #if defined(SUPPORT_HOSTDRV)  #if defined(SUPPORT_HOSTDRV)
   
 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
 #include        "oemtext.h"  #include        "oemtext.h"
 #endif  #endif
 #include        "dosio.h"  #include        "dosio.h"
Line 31  static void rcnvfcb(char *dst, UINT dlen Line 31  static void rcnvfcb(char *dst, UINT dlen
                 if (c == 0) {                  if (c == 0) {
                         break;                          break;
                 }                  }
 #if defined(OSLANG_SJIS) || defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_SJIS) || defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
                 if ((((c ^ 0x20) - 0xa1) & 0xff) < 0x3c) {                  if ((((c ^ 0x20) - 0xa1) & 0xff) < 0x3c) {
                         if ((!slen) || (src[0] == '\0')) {                          if ((!slen) || (src[0] == '\0')) {
                                 break;                                  break;
Line 77  static void rcnvfcb(char *dst, UINT dlen Line 77  static void rcnvfcb(char *dst, UINT dlen
   
 static BOOL realname2fcb(char *fcbname, FLINFO *fli) {  static BOOL realname2fcb(char *fcbname, FLINFO *fli) {
   
 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
         char    sjis[MAX_PATH];          char    sjis[MAX_PATH];
 #endif  #endif
         char    *realname;          char    *realname;
         char    *ext;          char    *ext;
   
 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
         oemtext_oemtosjis(sjis, sizeof(sjis), fli->path, NELEMENTS(fli->path));          oemtext_oemtosjis(sjis, sizeof(sjis), fli->path, NELEMENTS(fli->path));
         realname = sjis;          realname = sjis;
 #else  #else
Line 300  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 defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
         OEMCHAR         oemname[64];          OEMCHAR         oemname[64];
 #endif  #endif
   
Line 331  BOOL hostdrvs_newrealpath(HDRVPATH *hdp, Line 331  BOOL hostdrvs_newrealpath(HDRVPATH *hdp,
                 }                  }
                 *p = '\0';                  *p = '\0';
                 // ここで SJIS->OEMコードに未変換!                  // ここで SJIS->OEMコードに未変換!
 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
                 oemtext_sjistooem(oemname, NELEMENTS(oemname), dosname, (UINT)-1);                  oemtext_sjistooem(oemname, NELEMENTS(oemname), dosname, (UINT)-1);
                 file_catname(path, oemname, NELEMENTS(path));                  file_catname(path, oemname, NELEMENTS(path));
 #else  #else

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


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