int ConnectOnStart = YES;\r
int DebugConsole = NO;\r
int SaveWinPos = NO;\r
-char AsciiExt[ASCII_EXT_LEN+1] = { "*.txt\0*.html\0*.htm\0*.cgi\0*.pl\0" };\r
+// アスキーモード判別の改良\r
+//char AsciiExt[ASCII_EXT_LEN+1] = { "*.txt\0*.html\0*.htm\0*.cgi\0*.pl\0" };\r
+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" };\r
int RecvMode = TRANS_DLG;\r
int SendMode = TRANS_DLG;\r
int MoveMode = MOVE_DLG;\r
if(ReadMultiStringFromReg(hKey4, "AsciiFile", AsciiExt, ASCII_EXT_LEN+1) == FFFTP_FAIL)\r
{\r
/* 旧ASCIIモードの拡張子の設定を新しいものに変換 */\r
- ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1);\r
- memset(AsciiExt, NUL, ASCII_EXT_LEN+1);\r
+ // アスキーモード判別の改良\r
+// ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1);\r
+// memset(AsciiExt, NUL, ASCII_EXT_LEN+1);\r
+ Str[0] = NUL;\r
+ if(ReadStringFromReg(hKey4, "Ascii", Str, ASCII_EXT_LEN+1) == FFFTP_SUCCESS)\r
+ memset(AsciiExt, NUL, ASCII_EXT_LEN+1);\r
Pos = Str;\r
while(*Pos != NUL)\r
{\r