• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

修订版541deac70191d2398920f2ba87b1ed629d91b121 (tree)
时间2012-04-25 20:33:57
作者s_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Add extensions of files that will be transferred in ASCII mode.
Fix bugs of converting old type extensions lists.

更改概述

差异

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/main.c
+++ b/main.c
@@ -176,7 +176,9 @@ int TransMode = TYPE_X;
176176 int ConnectOnStart = YES;
177177 int DebugConsole = NO;
178178 int SaveWinPos = NO;
179-char AsciiExt[ASCII_EXT_LEN+1] = { "*.txt\0*.html\0*.htm\0*.cgi\0*.pl\0" };
179+// アスキーモード判別の改良
180+//char AsciiExt[ASCII_EXT_LEN+1] = { "*.txt\0*.html\0*.htm\0*.cgi\0*.pl\0" };
181+char AsciiExt[ASCII_EXT_LEN+1] = { "*.txt\0*.html\0*.htm\0*.cgi\0*.pl\0*.js\0*.vbs\0*.css\0*.rss\0*.rdf\0*.xml\0*.xhtml\0*.xht\0*.shtml\0*.shtm\0*.sh\0*.py\0*.rb\0" };
180182 int RecvMode = TRANS_DLG;
181183 int SendMode = TRANS_DLG;
182184 int MoveMode = MOVE_DLG;
--- a/registry.c
+++ b/registry.c
@@ -748,8 +748,12 @@ int LoadRegistry(void)
748748 if(ReadMultiStringFromReg(hKey4, "AsciiFile", AsciiExt, ASCII_EXT_LEN+1) == FFFTP_FAIL)
749749 {
750750 /* 旧ASCIIモードの拡張子の設定を新しいものに変換 */
751- ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1);
752- memset(AsciiExt, NUL, ASCII_EXT_LEN+1);
751+ // アスキーモード判別の改良
752+// ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1);
753+// memset(AsciiExt, NUL, ASCII_EXT_LEN+1);
754+ Str[0] = NUL;
755+ if(ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1) == FFFTP_SUCCESS)
756+ memset(AsciiExt, NUL, ASCII_EXT_LEN+1);
753757 Pos = Str;
754758 while(*Pos != NUL)
755759 {