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

version 1.4, 2004/01/27 07:51:48 version 1.7, 2004/06/18 16:58:11
Line 20  enum { Line 20  enum {
         DID_FILTER          DID_FILTER
 };  };
   
 static const BYTE str_dirname[] = {             // ファイルの場所  #if 1
                 0xcc,0xa7,0xb2,0xd9,0x82,0xcc,0x8f,0xea,0x8f,0x8a,0};                          // ファイルの場所
 static const BYTE str_filename[] = {    // ファイル名  static const char str_dirname[] =
                 0xcc,0xa7,0xb2,0xd9,0x96,0xbc,0};                                  "\203\164\203\100\203\103\203\213\202\314\217\352\217\212";
 static const BYTE str_filetype[] = {    // ファイルの種類                          // ファイル名
                 0xcc,0xa7,0xb2,0xd9,0x82,0xcc,0x8e,0xed,0x97,0xde,0};  static const char str_filename[] = "\203\164\203\100\203\103\203\213\226\274";
 static const BYTE str_open[] = {                // 開く                          // ファイルの種類
                 0x8a,0x4a,0x82,0xad,0};  static const char str_filetype[] =
                                   "\203\164\203\100\203\103\203\213\202\314\216\355\227\336";
                           // 開く
   static const char str_open[] = "\212\112\202\255";
   #else
   static const char str_dirname[] = "Look in";
   static const char str_filename[] = "File name";
   static const char str_filetype[] = "Files of type";
   static const char str_open[] = "Open";
   #endif
   
 #if defined(SIZE_QVGA)  #if defined(SIZE_QVGA)
 enum {  enum {
Line 208  static void dlgsetlist(void) { Line 216  static void dlgsetlist(void) {
                 do {                  do {
                         append = FALSE;                          append = FALSE;
                         if (fli.attr & 0x10) {                          if (fli.attr & 0x10) {
 #if defined(WIN32) && !defined(_WIN32_WCE)  
                                 if ((file_cmpname(fli.path, ".")) &&  
                                         (file_cmpname(fli.path, ".."))) {  
                                         append = TRUE;  
                                 }  
 #else  
                                 append = TRUE;                                  append = TRUE;
 #endif  
                         }                          }
                         else if (!(fli.attr & 0x08)) {                          else if (!(fli.attr & 0x08)) {
                                 append = checkext(fli.path, filesel.ext);                                  append = checkext(fli.path, filesel.ext);
Line 386  const char *title; Line 387  const char *title;
   
 // ----  // ----
   
 static const char diskfilter[] = "All supported Files";  static const char diskfilter[] = "All supported files";
 static const char fddtitle[] = "Select floppy image";  static const char fddtitle[] = "Select floppy image";
 static const char fddext[] = "d88\088d\0d98\098d\0xdf\0hdm\0dup\02hd\0tfd\0";  static const char fddext[] = "d88\088d\0d98\098d\0fdi\0" \
                                                                   "xdf\0hdm\0dup\02hd\0tfd\0";
 static const char hddtitle[] = "Select HDD image";  static const char hddtitle[] = "Select HDD image";
 static const char sasiext[] = "thd\0nhd\0hdi\0";  static const char sasiext[] = "thd\0nhd\0hdi\0";
 static const char scsiext[] = "hdd\0";  
   
 static const FSELPRM fddprm = {fddtitle, diskfilter, fddext};  static const FSELPRM fddprm = {fddtitle, diskfilter, fddext};
 static const FSELPRM sasiprm = {hddtitle, diskfilter, sasiext};  static const FSELPRM sasiprm = {hddtitle, diskfilter, sasiext};
   
   #if defined(SUPPORT_SCSI)
   static const char scsiext[] = "hdd\0";
 static const FSELPRM scsiprm = {hddtitle, diskfilter, scsiext};  static const FSELPRM scsiprm = {hddtitle, diskfilter, scsiext};
   #endif
   
   
 void filesel_fdd(REG8 drv) {  void filesel_fdd(REG8 drv) {
   
Line 411  void filesel_fdd(REG8 drv) { Line 417  void filesel_fdd(REG8 drv) {
 void filesel_hdd(REG8 drv) {  void filesel_hdd(REG8 drv) {
   
         UINT            num;          UINT            num;
         char            path[MAX_PATH];  
         char            *p;          char            *p;
 const FSELPRM   *prm;  const FSELPRM   *prm;
           char            path[MAX_PATH];
   
         num = drv & 0x0f;          num = drv & 0x0f;
           p = NULL;
           prm = NULL;
         if (!(drv & 0x20)) {            // SASI/IDE          if (!(drv & 0x20)) {            // SASI/IDE
                 if (num >= 2) {                  if (num < 2) {
                         return;                          p = np2cfg.sasihdd[num];
                           prm = &sasiprm;
                 }                  }
                 p = np2cfg.sasihdd[num];  
                 prm = &sasiprm;  
         }          }
   #if defined(SUPPORT_SCSI)
         else {                                          // SCSI          else {                                          // SCSI
                 if (num >= 4) {                  if (num < 4) {
                         return;                          p = np2cfg.scsihdd[num];
                           prm = &scsiprm;
                 }                  }
                 p = np2cfg.scsihdd[num];  
                 prm = &scsiprm;  
         }          }
         if (selectfile(prm, path, sizeof(path), p)) {  #endif
           if ((prm) && (selectfile(prm, path, sizeof(path), p))) {
                 diskdrv_sethdd(drv, path);                  diskdrv_sethdd(drv, path);
         }          }
 }  }

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


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