OSDN Git Service

Add options to control the behavior of mirroring transfer.
[ffftp/ffftp.git] / registry.c
index 2d2ac02..15da21b 100644 (file)
@@ -237,6 +237,10 @@ extern int AutoCheckForUpdates;
 extern int AutoApplyUpdates;\r
 extern int AutoCheckForUptatesInterval;\r
 extern time_t LastAutoCheckForUpdates;\r
+// ファイル一覧バグ修正\r
+extern int AbortOnListError;\r
+// ミラーリング設定追加\r
+extern int MirrorNoTransferContents; \r
 \r
 /*----- マスタパスワードの設定 ----------------------------------------------\r
 *\r
@@ -837,6 +841,10 @@ void SaveRegistry(void)
                                WriteIntValueToReg(hKey4, "UpdApply", AutoApplyUpdates);\r
                                WriteIntValueToReg(hKey4, "UpdInterval", AutoCheckForUptatesInterval);\r
                                WriteBinaryToReg(hKey4, "UpdLastCheck", &LastAutoCheckForUpdates, sizeof(LastAutoCheckForUpdates));\r
+                               // ファイル一覧バグ修正\r
+                               WriteIntValueToReg(hKey4, "AbortListErr", AbortOnListError);\r
+                               // ミラーリング設定追加\r
+                               WriteIntValueToReg(hKey4, "MirNoTransfer", MirrorNoTransferContents);\r
                        }\r
                        CloseSubKey(hKey4);\r
                }\r
@@ -1420,6 +1428,10 @@ int LoadRegistry(void)
                        ReadIntValueFromReg(hKey4, "UpdApply", &AutoApplyUpdates);\r
                        ReadIntValueFromReg(hKey4, "UpdInterval", &AutoCheckForUptatesInterval);\r
                        ReadBinaryFromReg(hKey4, "UpdLastCheck", &LastAutoCheckForUpdates, sizeof(LastAutoCheckForUpdates));\r
+                       // ファイル一覧バグ修正\r
+                       ReadIntValueFromReg(hKey4, "AbortListErr", &AbortOnListError);\r
+                       // ミラーリング設定追加\r
+                       ReadIntValueFromReg(hKey4, "MirNoTransfer", &MirrorNoTransferContents);\r
 \r
                        CloseSubKey(hKey4);\r
                }\r