This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathPatchParameters.cs
53 lines (41 loc) · 2.09 KB
/
PatchParameters.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace SimplePatchToolCore
{
public static class PatchParameters
{
#region Constants
public const string REPAIR_PATCH_FILE_EXTENSION = ".lzdat";
public const string INCREMENTAL_PATCH_FILE_EXTENSION = ".patch";
public const string INCREMENTAL_PATCH_INFO_EXTENSION = ".info";
public const string INSTALLER_PATCH_FILENAME = "Installer.patch";
public const string VERSION_INFO_FILENAME = "VersionInfo.info";
public const string VERSION_HOLDER_FILENAME_POSTFIX = "_vers.sptv";
public const string REPAIR_PATCH_DIRECTORY = "RepairPatch";
public const string INCREMENTAL_PATCH_DIRECTORY = "IncrementalPatch";
public const string INSTALLER_PATCH_DIRECTORY = "InstallerPatch";
public const string PROJECT_VERSIONS_DIRECTORY = "Versions";
public const string PROJECT_SELF_PATCHER_DIRECTORY = "SelfPatcher";
public const string PROJECT_OUTPUT_DIRECTORY = "Output";
public const string PROJECT_OTHER_DIRECTORY = "Other";
public const string PROJECT_SETTINGS_FILENAME = "Settings.xml";
public const string PROJECT_UPDATE_LINKS_FILENAME = "DownloadLinks.txt";
public const string LOG_FILE_NAME = "spt_logs.txt";
public const long LOG_FILE_MAX_SIZE = 4 * 1024 * 1024L; // 4 MB
public const string CACHE_DATE_HOLDER_FILENAME = "time.dat";
public const int CACHE_DATE_EXPIRE_DAYS = 14;
public const string SELF_PATCHER_DIRECTORY = "SPPatcher";
public const string SELF_PATCH_INSTRUCTIONS_FILENAME = "psp.in0";
public const string SELF_PATCH_COMPLETED_INSTRUCTIONS_FILENAME = "psp.in1";
public const string SELF_PATCH_OP_SEPARATOR = "><";
public const string SELF_PATCH_DELETE_OP = "_#DELETE#_";
public const string SELF_PATCH_MOVE_OP = "_#MOVE#_";
#endregion
#region Parameters
public static int FailedDownloadsRetryLimit = 3;
public static long FailedDownloadsRetrySizeLimit = 30000000L; // ~30MB retry size limit per file
public static int FailedDownloadsCooldownMillis = 5000;
public static double DownloadStatsUpdateInterval = 0.2;
public static int FileAvailabilityCheckTimeout = 8000;
public static long FileHashCheckSizeLimit = long.MaxValue;
#endregion
}
}