diff options
author | yuuko <yuuko@partyvan.io> | 2024-11-24 00:49:25 -0800 |
---|---|---|
committer | yuuko <yuuko@partyvan.io> | 2024-11-24 00:49:25 -0800 |
commit | e4c37c5d5dc734fb94149af4a6273f35f818bdca (patch) | |
tree | 46912968714a140234aea6b23b930f229ad733de /srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch | |
parent | 402758f0494c2e4826605b36a93bbbe703db9cbd (diff) |
chore: rework depotdownloader patches for 2.7
Diffstat (limited to 'srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch')
-rw-r--r-- | srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch b/srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch new file mode 100644 index 0000000..3cc62b8 --- /dev/null +++ b/srcds-pkgs/depotdownloader-json/2_7/0001-ProtoManifest-sort-files-in-constructor.patch @@ -0,0 +1,24 @@ +From 1ecf96ef85c9d2d14619da93bd5a5ce53a74d8ad Mon Sep 17 00:00:00 2001 +From: yuuko <yuuko@kurofuku.me> +Date: Wed, 1 Nov 2023 06:46:57 -0700 +Subject: [PATCH 1/2] ProtoManifest: sort files in constructor + +--- + DepotDownloader/ProtoManifest.cs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/DepotDownloader/ProtoManifest.cs b/DepotDownloader/ProtoManifest.cs +index b6eb010..260fdef 100644 +--- a/DepotDownloader/ProtoManifest.cs ++++ b/DepotDownloader/ProtoManifest.cs +@@ -23,6 +23,7 @@ namespace DepotDownloader + public ProtoManifest(DepotManifest sourceManifest, ulong id) : this() + { + sourceManifest.Files.ForEach(f => Files.Add(new FileData(f))); ++ Files.Sort((f1,f2) => f1.FileName.CompareTo(f2.FileName)); + ID = id; + CreationTime = sourceManifest.CreationTime; + } +-- +2.47.0 + |