Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/filesys_log.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2511 by yutakapon, Wed May 14 16:33:09 2008 UTC revision 2512 by yutakapon, Thu May 15 13:52:39 2008 UTC
# Line 969  BOOL OpenProtoDlg(PFileVar fv, int IdPro Line 969  BOOL OpenProtoDlg(PFileVar fv, int IdPro
969                          break;                          break;
970                  case PROTO_YM:  // TBD                  case PROTO_YM:  // TBD
971                          ((PYVar)ProtoVar)->YMode = Mode;                          ((PYVar)ProtoVar)->YMode = Mode;
972                          ((PYVar)ProtoVar)->YOpt = Opt1;                          ((PYVar)ProtoVar)->YOpt = Yopt1K;  // TBD
                         ((PYVar)ProtoVar)->TextFlag = 1 - (Opt2 & 1);  
973                          break;                          break;
974                  case PROTO_ZM:                  case PROTO_ZM:
975                          ((PZVar)ProtoVar)->BinFlag = (Opt1 & 1) != 0;                          ((PZVar)ProtoVar)->BinFlag = (Opt1 & 1) != 0;
# Line 1231  void XMODEMStart(int mode) Line 1230  void XMODEMStart(int mode)
1230  extern "C" {  extern "C" {
1231  void YMODEMStart(int mode)  void YMODEMStart(int mode)
1232  {  {
1233          LONG Option;          WORD Opt;
1234    
1235          if (! ProtoStart())          if (! ProtoStart())
1236                  return;                  return;
1237    
1238          if (mode==IdYReceive)          if (mode==IdYSend)
                 FileVar->OpId = OpYRcv;  
         else  
                 FileVar->OpId = OpYSend;  
   
         if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)  
1239          {          {
1240                  Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt);                  Opt = ts.XmodemBin;
1241                  if (! (*GetXFname)(FileVar->HMainWin,  // TBD                  FileVar->OpId = OpYSend;
1242                                     mode==IdYReceive,&Option,FileVar,ts.FileDir))                  if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1243                  {                  {
1244                          ProtoEnd();                          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Y,&Opt) ||
1245                          return;                              (FileVar->NumFname==0))
1246                            {
1247                                    ProtoEnd();
1248                                    return;
1249                            }
1250                            ts.XmodemBin = Opt;
1251                  }                  }
1252                  ts.XmodemOpt = HIWORD(Option);  // TBD                  else
                 ts.XmodemBin = LOWORD(Option);  
         }  
         else  
1253                  (*SetFileVar)(FileVar);                  (*SetFileVar)(FileVar);
   
         if (mode==IdYReceive)  
                 FileVar->FileHandle = _lcreat(FileVar->FullName,0);  
         else  
                 FileVar->FileHandle = _lopen(FileVar->FullName,OF_READ);  
   
         FileVar->FileOpen = FileVar->FileHandle>0;  
         if (! FileVar->FileOpen)  
         {  
                 ProtoEnd();  
                 return;  
1254          }          }
1255            else /* IdZReceive or IdZAuto */
1256                    FileVar->OpId = OpYRcv;
1257    
1258          TalkStatus = IdTalkQuiet;          TalkStatus = IdTalkQuiet;
1259    
1260          /* disable transmit delay (serial port) */          /* disable transmit delay (serial port) */
1261          cv.DelayFlag = FALSE;          cv.DelayFlag = FALSE;
1262    
1263          if (! OpenProtoDlg(FileVar,PROTO_YM,mode,          if (! OpenProtoDlg(FileVar,PROTO_YM,mode,Opt,0))
                            ts.XmodemOpt,ts.XmodemBin))  
1264                  ProtoEnd();                  ProtoEnd();
1265  }  }
1266  }  }

Legend:
Removed from v.2511  
changed lines
  Added in v.2512

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26