Diff for /np2/embed/menu/filesel.c between versions 1.7 and 1.12

version 1.7, 2004/06/18 16:58:11 version 1.12, 2004/06/25 10:39:27
Line 20  enum { Line 20  enum {
         DID_FILTER          DID_FILTER
 };  };
   
 #if 1  #if !defined(RESOURCE_US) && (!defined(CHARSET_OEM) || defined(OSLANG_SJIS))
                         // ファイルの場所  static const char str_dirname[] =                               // ファイルの場所
 static const char str_dirname[] =                          "\203\164\203\100\203\103\203\213\202\314\217\352\217\212";
                                 "\203\164\203\100\203\103\203\213\202\314\217\352\217\212";  static const char str_filename[] =                              // ファイル名
                         // ファイル名                          "\203\164\203\100\203\103\203\213\226\274";
 static const char str_filename[] = "\203\164\203\100\203\103\203\213\226\274";  static const char str_filetype[] =                              // ファイルの種類
                         // ファイルの種類                          "\203\164\203\100\203\103\203\213\202\314\216\355\227\336";
 static const char str_filetype[] =  static const char str_open[] =                                  // 開く
                                 "\203\164\203\100\203\103\203\213\202\314\216\355\227\336";                          "\212\112\202\255";
                         // 開く  #elif defined(OSLANG_EUC) && !defined(RESOURCE_US)
 static const char str_open[] = "\212\112\202\255";  static const char str_dirname[] =                               // ファイルの場所
                           "\245\325\245\241\245\244\245\353\244\316\276\354\275\352";
   static const char str_filename[] =                              // ファイル名
                           "\245\325\245\241\245\244\245\353\314\276";
   static const char str_filetype[] =                              // ファイルの種類
                           "\245\325\245\241\245\244\245\353\244\316\274\357\316\340";
   static const char str_open[] =                                  // 開く
                           "\263\253\244\257";
   #elif defined(OSLANG_UTF8) && !defined(RESOURCE_US)
   static const char str_dirname[] =                               // ファイルの場所
                           "\343\203\225\343\202\241\343\202\244\343\203\253\343\201\256" \
                           "\345\240\264\346\211\200";
   static const char str_filename[] =                              // ファイル名
                           "\343\203\225\343\202\241\343\202\244\343\203\253\345\220\215";
   static const char str_filetype[] =                              // ファイルの種類
                           "\343\203\225\343\202\241\343\202\244\343\203\253\343\201\256" \
                           "\347\250\256\351\241\236";
   static const char str_open[] =                                  // 開く
                           "\351\226\213\343\201\217";
 #else  #else
 static const char str_dirname[] = "Look in";  static const char str_dirname[] = "Look in";
 static const char str_filename[] = "File name";  static const char str_filename[] = "File name";
Line 194  static void dlgsetlist(void) { Line 212  static void dlgsetlist(void) {
         BOOL            append;          BOOL            append;
         FLIST           fl;          FLIST           fl;
         ITEMEXPRM       prm;          ITEMEXPRM       prm;
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
         char            sjis[MAX_PATH];          char            sjis[MAX_PATH];
 #endif  #endif
   
Line 204  static void dlgsetlist(void) { Line 222  static void dlgsetlist(void) {
         codecnv_euc2sjis(sjis, sizeof(sjis),          codecnv_euc2sjis(sjis, sizeof(sjis),
                                                                         file_getname(filesel.path), (UINT)-1);                                                                          file_getname(filesel.path), (UINT)-1);
         menudlg_settext(DID_FOLDER, sjis);          menudlg_settext(DID_FOLDER, sjis);
   #elif defined(OSLANG_UTF8)
           oemtext_oem2sjis(sjis, sizeof(sjis),
                                                                           file_getname(filesel.path), (UINT)-1);
           menudlg_settext(DID_FOLDER, sjis);
 #else  #else
         menudlg_settext(DID_FOLDER, file_getname(filesel.path));          menudlg_settext(DID_FOLDER, file_getname(filesel.path));
 #endif  #endif
Line 237  static void dlgsetlist(void) { Line 259  static void dlgsetlist(void) {
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC)
                 codecnv_euc2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);                  codecnv_euc2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);
                 prm.str = sjis;                  prm.str = sjis;
   #elif defined(OSLANG_UTF8)
                   oemtext_oem2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);
                   prm.str = sjis;
 #else  #else
                 prm.str = fl->name;                  prm.str = fl->name;
 #endif  #endif
Line 248  static void dlgsetlist(void) { Line 273  static void dlgsetlist(void) {
   
 static void dlginit(void) {  static void dlginit(void) {
   
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
         char    sjis[MAX_PATH];          char    sjis[MAX_PATH];
 #endif  #endif
   
Line 258  static void dlginit(void) { Line 283  static void dlginit(void) {
         codecnv_euc2sjis(sjis, sizeof(sjis),          codecnv_euc2sjis(sjis, sizeof(sjis),
                                                                         file_getname(filesel.path), (UINT)-1);                                                                          file_getname(filesel.path), (UINT)-1);
         menudlg_settext(DID_FILE, sjis);          menudlg_settext(DID_FILE, sjis);
   #elif defined(OSLANG_UTF8)
           oemtext_oem2sjis(sjis, sizeof(sjis),
                                                                           file_getname(filesel.path), (UINT)-1);
           menudlg_settext(DID_FILE, sjis);
 #else  #else
         menudlg_settext(DID_FILE, file_getname(filesel.path));          menudlg_settext(DID_FILE, file_getname(filesel.path));
 #endif  #endif
Line 291  static BOOL dlgupdate(void) { Line 320  static BOOL dlgupdate(void) {
 static void dlgflist(void) {  static void dlgflist(void) {
   
         FLIST   fl;          FLIST   fl;
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC) || defined(OSLANG_UTF8)
         char    sjis[MAX_PATH];          char    sjis[MAX_PATH];
 #endif  #endif
   
Line 300  static void dlgflist(void) { Line 329  static void dlgflist(void) {
 #if defined(OSLANG_EUC)  #if defined(OSLANG_EUC)
                 codecnv_euc2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);                  codecnv_euc2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);
                 menudlg_settext(DID_FILE, sjis);                  menudlg_settext(DID_FILE, sjis);
   #elif defined(OSLANG_UTF8)
                   oemtext_oem2sjis(sjis, sizeof(sjis), fl->name, (UINT)-1);
                   menudlg_settext(DID_FILE, sjis);
 #else  #else
                 menudlg_settext(DID_FILE, fl->name);                  menudlg_settext(DID_FILE, fl->name);
 #endif  #endif

Removed from v.1.7  
changed lines
  Added in v.1.12


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