| 283 |
strncat(LogVar->FullName, ts.LogDefaultName, sizeof(LogVar->FullName)); |
strncat(LogVar->FullName, ts.LogDefaultName, sizeof(LogVar->FullName)); |
| 284 |
ParseStrftimeFileName(LogVar->FullName); |
ParseStrftimeFileName(LogVar->FullName); |
| 285 |
|
|
|
#ifdef I18N |
|
|
if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option, &ts)) |
|
|
#else |
|
| 286 |
if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option)) |
if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option)) |
|
#endif |
|
| 287 |
{ |
{ |
| 288 |
FreeFileVar(&LogVar); |
FreeFileVar(&LogVar); |
| 289 |
FreeTTFILE(); |
FreeTTFILE(); |
| 309 |
|
|
| 310 |
} |
} |
| 311 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 312 |
(*SetFileVar)(LogVar); |
(*SetFileVar)(LogVar); |
|
#endif |
|
| 313 |
|
|
| 314 |
if (ts.TransBin > 0) |
if (ts.TransBin > 0) |
| 315 |
{ |
{ |
| 626 |
{ |
{ |
| 627 |
Option = MAKELONG(ts.TransBin,0); |
Option = MAKELONG(ts.TransBin,0); |
| 628 |
SendVar->FullName[0] = 0; |
SendVar->FullName[0] = 0; |
|
#ifdef I18N |
|
|
if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option, &ts)) |
|
|
#else |
|
| 629 |
if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option)) |
if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option)) |
|
#endif |
|
| 630 |
{ |
{ |
| 631 |
FileTransEnd(OpSendFile); |
FileTransEnd(OpSendFile); |
| 632 |
return; |
return; |
| 634 |
ts.TransBin = LOWORD(Option); |
ts.TransBin = LOWORD(Option); |
| 635 |
} |
} |
| 636 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 637 |
(*SetFileVar)(SendVar); |
(*SetFileVar)(SendVar); |
|
#endif |
|
| 638 |
|
|
| 639 |
SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ); |
SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ); |
| 640 |
SendVar->FileOpen = (SendVar->FileHandle>0); |
SendVar->FileOpen = (SendVar->FileHandle>0); |
| 959 |
P = ActiveWin; |
P = ActiveWin; |
| 960 |
if (PtDlg==NULL) return P; |
if (PtDlg==NULL) return P; |
| 961 |
|
|
|
#ifdef I18N |
|
|
if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv,&ts)) |
|
|
#else |
|
| 962 |
if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv)) |
if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv)) |
|
#endif |
|
| 963 |
P = 0; /* continue */ |
P = 0; /* continue */ |
| 964 |
else { |
else { |
| 965 |
CommSend(&cv); |
CommSend(&cv); |
| 998 |
FileVar->OpId = OpKmtSend; |
FileVar->OpId = OpKmtSend; |
| 999 |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
| 1000 |
{ |
{ |
|
#ifdef I18N |
|
|
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w,&ts) || |
|
|
#else |
|
| 1001 |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) || |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) || |
|
#endif |
|
| 1002 |
(FileVar->NumFname==0)) |
(FileVar->NumFname==0)) |
| 1003 |
{ |
{ |
| 1004 |
ProtoEnd(); |
ProtoEnd(); |
| 1006 |
} |
} |
| 1007 |
} |
} |
| 1008 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1009 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1010 |
break; |
break; |
| 1011 |
case IdKmtReceive: |
case IdKmtReceive: |
| 1012 |
FileVar->OpId = OpKmtRcv; |
FileVar->OpId = OpKmtRcv; |
| 1023 |
} |
} |
| 1024 |
} |
} |
| 1025 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1026 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1027 |
break; |
break; |
| 1028 |
case IdKmtFinish: |
case IdKmtFinish: |
| 1029 |
FileVar->OpId = OpKmtFin; |
FileVar->OpId = OpKmtFin; |
| 1057 |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
| 1058 |
{ |
{ |
| 1059 |
Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt); |
Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt); |
|
#ifdef I18N |
|
|
if (! (*GetXFname)(FileVar->HMainWin, |
|
|
mode==IdXReceive,&Option,FileVar,ts.FileDir,&ts)) |
|
|
#else |
|
| 1060 |
if (! (*GetXFname)(FileVar->HMainWin, |
if (! (*GetXFname)(FileVar->HMainWin, |
| 1061 |
mode==IdXReceive,&Option,FileVar,ts.FileDir)) |
mode==IdXReceive,&Option,FileVar,ts.FileDir)) |
|
#endif |
|
| 1062 |
{ |
{ |
| 1063 |
ProtoEnd(); |
ProtoEnd(); |
| 1064 |
return; |
return; |
| 1067 |
ts.XmodemBin = LOWORD(Option); |
ts.XmodemBin = LOWORD(Option); |
| 1068 |
} |
} |
| 1069 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1070 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1071 |
|
|
| 1072 |
if (mode==IdXReceive) |
if (mode==IdXReceive) |
| 1073 |
FileVar->FileHandle = _lcreat(FileVar->FullName,0); |
FileVar->FileHandle = _lcreat(FileVar->FullName,0); |
| 1104 |
FileVar->OpId = OpZSend; |
FileVar->OpId = OpZSend; |
| 1105 |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
| 1106 |
{ |
{ |
|
#ifdef I18N |
|
|
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt,&ts) || |
|
|
#else |
|
| 1107 |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) || |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) || |
|
#endif |
|
| 1108 |
(FileVar->NumFname==0)) |
(FileVar->NumFname==0)) |
| 1109 |
{ |
{ |
| 1110 |
ProtoEnd(); |
ProtoEnd(); |
| 1113 |
ts.XmodemBin = Opt; |
ts.XmodemBin = Opt; |
| 1114 |
} |
} |
| 1115 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1116 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1117 |
} |
} |
| 1118 |
else /* IdZReceive or IdZAuto */ |
else /* IdZReceive or IdZAuto */ |
| 1119 |
FileVar->OpId = OpZRcv; |
FileVar->OpId = OpZRcv; |
| 1140 |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
| 1141 |
{ |
{ |
| 1142 |
FileVar->FullName[0] = 0; |
FileVar->FullName[0] = 0; |
|
#ifdef I18N |
|
|
if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option, &ts)) |
|
|
#else |
|
| 1143 |
if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option)) |
if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option)) |
|
#endif |
|
| 1144 |
{ |
{ |
| 1145 |
ProtoEnd(); |
ProtoEnd(); |
| 1146 |
return; |
return; |
| 1147 |
} |
} |
| 1148 |
} |
} |
| 1149 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1150 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1151 |
} |
} |
| 1152 |
else /* IdBPReceive or IdBPAuto */ |
else /* IdBPReceive or IdBPAuto */ |
| 1153 |
FileVar->OpId = OpBPRcv; |
FileVar->OpId = OpBPRcv; |
| 1174 |
FileVar->OpId = OpQVSend; |
FileVar->OpId = OpQVSend; |
| 1175 |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0) |
| 1176 |
{ |
{ |
|
#ifdef I18N |
|
|
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W, &ts) || |
|
|
#else |
|
| 1177 |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) || |
if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) || |
|
#endif |
|
| 1178 |
(FileVar->NumFname==0)) |
(FileVar->NumFname==0)) |
| 1179 |
{ |
{ |
| 1180 |
ProtoEnd(); |
ProtoEnd(); |
| 1182 |
} |
} |
| 1183 |
} |
} |
| 1184 |
else |
else |
|
#ifdef I18N |
|
|
(*SetFileVar)(FileVar, &ts); |
|
|
#else |
|
| 1185 |
(*SetFileVar)(FileVar); |
(*SetFileVar)(FileVar); |
|
#endif |
|
| 1186 |
} |
} |
| 1187 |
else |
else |
| 1188 |
FileVar->OpId = OpQVRcv; |
FileVar->OpId = OpQVRcv; |
| 1199 |
|
|
| 1200 |
/* |
/* |
| 1201 |
* $Log$ |
* $Log$ |
| 1202 |
|
* Revision 1.9 2007/01/21 16:18:35 maya |
| 1203 |
|
* 表示メッセージの読み込み対応 |
| 1204 |
|
* |
| 1205 |
* Revision 1.8 2007/01/04 15:11:44 maya |
* Revision 1.8 2007/01/04 15:11:44 maya |
| 1206 |
* 表示メッセージの読み込み対応 |
* 表示メッセージの読み込み対応 |
| 1207 |
* |
* |