• 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

Saputra


Commit MetaInfo

修订版3563717ced0f7e75eb9cec96c254de7a52145ea5 (tree)
时间2012-02-22 13:44:58
作者s_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Add portable version checks.
Modify documents.
Modify installer settings.

更改概述

差异

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
--- a/Package/installer_config.bat
+++ b/Package/installer_config.bat
@@ -17,6 +17,7 @@ set ENG_INST=EXEpress\eng\ffftp.exe
1717 set HTMLHELP=..\htmlhelp\FFFTP.CHM
1818 set BIN_JPN=..\Release\FFFTP.exe
1919 set BIN_ENG=..\FFFTP_Eng_Release\FFFTP.exe
20+set PORTABLE_FILE=portable
2021
2122 set DIR_JPN_DOC=..\doc\jpn
2223 set DIR_ENG_DOC=..\doc\eng
--- a/Package/make_installer_pre.bat
+++ b/Package/make_installer_pre.bat
@@ -27,4 +27,8 @@ REM; copy to installer working directory
2727 copy /Y %DIR_JPN%\*.* %DIR_JPN_INST%
2828 copy /Y %DIR_ENG%\*.* %DIR_ENG_INST%
2929
30+REM; copy a portable indicator file
31+copy /Y %PORTABLE_FILE% %DIR_JPN%
32+copy /Y %PORTABLE_FILE% %DIR_ENG%
33+
3034 pause
--- /dev/null
+++ b/Package/portable
@@ -0,0 +1 @@
1+This file indicates that FFFTP is portable.
\ No newline at end of file
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/common.h
+++ b/common.h
@@ -1308,6 +1308,9 @@ BOOL LoadSSLRootCAFile();
13081308 BOOL IsMainThread();
13091309 // ファイルアイコン表示対応
13101310 int AskDispFileIcon(void);
1311+// ポータブル版判定
1312+void CheckPortableVersion();
1313+int AskPortableVersion(void);
13111314
13121315 /*===== filelist.c =====*/
13131316
--- a/doc/eng/FFFTP.txt
+++ b/doc/eng/FFFTP.txt
@@ -69,6 +69,9 @@ Changes in Ver.1.98e
6969 Name resolution and connection will be performed at same time on IPv4 and
7070 IPv6, and whichever finished earlier will be used.
7171
72+-- Disabled saving settings in the registry about ZIP version copies.
73+ To save in the registry, please remove "portable" the file.
74+
7275
7376 Outline
7477 -------
--- a/doc/eng/history.txt
+++ b/doc/eng/history.txt
@@ -41,6 +41,9 @@ Changes in Ver.1.98e
4141 Name resolution and connection will be performed at same time on IPv4 and
4242 IPv6, and whichever finished earlier will be used.
4343
44+-- Disabled saving settings in the registry about ZIP version copies.
45+ To save in the registry, please remove "portable" the file.
46+
4447 Changes in Ver.1.98d
4548 --------------------
4649
--- a/doc/jpn/FFFTP.txt
+++ b/doc/jpn/FFFTP.txt
@@ -61,7 +61,7 @@ Ver 1.98e
6161 @iˆÈ‘O‚̐ݒ肪‘¶Ý‚µA“¯ŽžÚ‘±”‚ª1‚æ‚è‘å‚«‚¢ê‡‚Í‚»‚̐ݒ肪“K—p
6262 @‚³‚ê‚Ü‚·jB
6363
64-EƒAƒbƒvƒ[ƒhŽž‚ɃzƒXƒg‚ª–¼‘O‚ð•t‚¯‚½ê‡‚É‚·‚Å‚É‘¶Ý‚·‚éƒtƒ@ƒCƒ‹‚Ì
64+EƒAƒbƒvƒ[ƒhŽž‚ɃzƒXƒg‚ª–¼‘O‚ð•t‚¯‚½ê‡‚ÉŒ³‚̃tƒ@ƒCƒ‹–¼‚̃tƒ@ƒCƒ‹‚Ì
6565 @‘®«‚ª•ÏX‚³‚ê‚éƒoƒO‚ðC³‚µ‚Ü‚µ‚½B
6666
6767 EI—¹Žž‚ɃtƒŠ[ƒY‚·‚邱‚Æ‚ª‚ ‚éƒoƒO‚ðC³‚µ‚Ü‚µ‚½B
@@ -73,6 +73,9 @@ Ver 1.98e
7373 @IPv4‚ÆIPv6‚Ì—¼•û‚Å–¼‘O‰ðŒˆ‚Ɛڑ±‚𓯎ž‚ɍs‚¢Aæ‚ɐڑ±‚ªŠ®—¹‚µ‚½•û‚ð
7474 @Žg—p‚µ‚Ü‚·B
7575
76+EZIP”łł̓ŒƒWƒXƒgƒŠ‚ɐݒè‚ðˆêØ•Û‘¶‚µ‚È‚¢‚悤‚ɕύX‚µ‚Ü‚µ‚½B
77+@ƒŒƒWƒXƒgƒŠ‚ðŽg—p‚·‚é‚ɂ̓tƒ@ƒCƒ‹"portable"‚ðíœ‚µ‚Ä‚­‚¾‚³‚¢B
78+
7679
7780 Ver 1.96dˆÈ‘O‚Ö–ß‚·ê‡
7881 -----------------------
--- a/doc/jpn/history.txt
+++ b/doc/jpn/history.txt
@@ -45,6 +45,9 @@ FFFTP
4545 @IPv4‚ÆIPv6‚Ì—¼•û‚Å–¼‘O‰ðŒˆ‚Ɛڑ±‚𓯎ž‚ɍs‚¢Aæ‚ɐڑ±‚ªŠ®—¹‚µ‚½•û‚ð
4646 @Žg—p‚µ‚Ü‚·B
4747
48+EZIP”łł̓ŒƒWƒXƒgƒŠ‚ɐݒè‚ðˆêØ•Û‘¶‚µ‚È‚¢‚悤‚ɕύX‚µ‚Ü‚µ‚½B
49+@ƒŒƒWƒXƒgƒŠ‚ðŽg—p‚·‚é‚ɂ̓tƒ@ƒCƒ‹"portable"‚ðíœ‚µ‚Ä‚­‚¾‚³‚¢B
50+
4851 ¡Ver 1.98d
4952
5053 EMLSDƒRƒ}ƒ“ƒh‚ɑΉž‚µ‚½ƒzƒXƒg‚Å‚ÍMLSDƒRƒ}ƒ“ƒh‚ð—p‚¢‚ătƒ@ƒCƒ‹ˆê——‚ð
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -335,6 +335,8 @@ void DownloadProc(int ChName, int ForceFile, int All)
335335 void DirectDownloadProc(char *Fname)
336336 {
337337 TRANSPACKET Pkt;
338+ // ディレクトリ自動作成
339+ char Tmp[FMAX_PATH+1];
338340
339341 // 同時接続対応
340342 CancelFlg = NO;
@@ -400,9 +402,17 @@ void DirectDownloadProc(char *Fname)
400402 Pkt.KanjiCodeDesired = AskLocalKanjiCode();
401403 Pkt.KanaCnv = AskHostKanaCnv();
402404
405+ // ディレクトリ自動作成
406+ strcpy(Tmp, Pkt.LocalFile);
403407 Pkt.Mode = CheckLocalFile(&Pkt); /* Pkt.ExistSize がセットされる */
404408 if((Pkt.Mode != EXIST_ABORT) && (Pkt.Mode != EXIST_IGNORE))
409+ // ディレクトリ自動作成
410+// AddTransFileList(&Pkt);
411+ {
412+ if(MakeAllDir == YES)
413+ MakeDirFromLocalPath(Pkt.LocalFile, Tmp);
405414 AddTransFileList(&Pkt);
415+ }
406416 }
407417 }
408418
--- a/main.c
+++ b/main.c
@@ -136,6 +136,9 @@ static DWORD dwCookie;
136136 static char SSLRootCAFilePath[FMAX_PATH+1];
137137 // マルチコアCPUの特定環境下でファイル通信中にクラッシュするバグ対策
138138 static DWORD MainThreadId;
139+// ポータブル版判定
140+static char PortableFilePath[FMAX_PATH+1];
141+int PortableVersion;
139142
140143
141144 /*===== グローバルなワーク =====*/
@@ -441,6 +444,15 @@ static int InitApp(LPSTR lpszCmdLine, int cmdShow)
441444 ForceIni = YES;
442445 RegType = REGTYPE_INI;
443446 }
447+ // ポータブル版判定
448+ GetModuleFileName(NULL, PortableFilePath, FMAX_PATH);
449+ strcpy(GetFileName(PortableFilePath), "portable");
450+ CheckPortableVersion();
451+ if(PortableVersion == YES)
452+ {
453+ ForceIni = YES;
454+ RegType = REGTYPE_INI;
455+ }
444456
445457 // AllocConsole();
446458
@@ -3122,3 +3134,21 @@ int AskDispFileIcon(void)
31223134 return(DispFileIcon);
31233135 }
31243136
3137+// ポータブル版判定
3138+void CheckPortableVersion()
3139+{
3140+ HANDLE hFile;
3141+ if((hFile = CreateFile(PortableFilePath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) != INVALID_HANDLE_VALUE)
3142+ {
3143+ PortableVersion = YES;
3144+ CloseHandle(hFile);
3145+ }
3146+ else
3147+ PortableVersion = NO;
3148+}
3149+
3150+int AskPortableVersion(void)
3151+{
3152+ return(PortableVersion);
3153+}
3154+
--- a/option.c
+++ b/option.c
@@ -1481,6 +1481,9 @@ static INT_PTR CALLBACK MiscSettingProc(HWND hDlg, UINT message, WPARAM wParam,
14811481 SendDlgItemMessage(hDlg, MISC_WINPOS, BM_SETCHECK, SaveWinPos, 0);
14821482 SendDlgItemMessage(hDlg, MISC_DEBUG, BM_SETCHECK, DebugConsole, 0);
14831483 SendDlgItemMessage(hDlg, MISC_REGTYPE, BM_SETCHECK, RegType, 0);
1484+ // ポータブル版判定
1485+ if(AskForceIni() == YES)
1486+ EnableWindow(GetDlgItem(hDlg, MISC_REGTYPE), FALSE);
14841487
14851488 SendDlgItemMessage(hDlg, MISC_CACHE_SAVE, BM_SETCHECK, CacheSave, 0);
14861489 SendDlgItemMessage(hDlg, MISC_BUFNUM, EM_LIMITTEXT, (WPARAM)2, 0);
@@ -1510,7 +1513,10 @@ static INT_PTR CALLBACK MiscSettingProc(HWND hDlg, UINT message, WPARAM wParam,
15101513 case PSN_APPLY :
15111514 SaveWinPos = SendDlgItemMessage(hDlg, MISC_WINPOS, BM_GETCHECK, 0, 0);
15121515 DebugConsole = SendDlgItemMessage(hDlg, MISC_DEBUG, BM_GETCHECK, 0, 0);
1513- RegType = SendDlgItemMessage(hDlg, MISC_REGTYPE, BM_GETCHECK, 0, 0);
1516+ // ポータブル版判定
1517+// RegType = SendDlgItemMessage(hDlg, MISC_REGTYPE, BM_GETCHECK, 0, 0);
1518+ if(AskForceIni() == NO)
1519+ RegType = SendDlgItemMessage(hDlg, MISC_REGTYPE, BM_GETCHECK, 0, 0);
15141520
15151521 CacheSave = SendDlgItemMessage(hDlg, MISC_CACHE_SAVE, BM_GETCHECK, 0, 0);
15161522 CacheEntry = GetDecimalText(hDlg, MISC_BUFNUM);