From a9e8d6f8a8103fa7e03be2a84ee3b05efd46fcdf Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Mon, 24 Feb 2025 10:15:11 +0000 Subject: [PATCH] Substitute textures inherit download size from original --- MareSynchronos/Services/PlayerPerformanceService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MareSynchronos/Services/PlayerPerformanceService.cs b/MareSynchronos/Services/PlayerPerformanceService.cs index 09b8bb2..aed9989 100644 --- a/MareSynchronos/Services/PlayerPerformanceService.cs +++ b/MareSynchronos/Services/PlayerPerformanceService.cs @@ -301,7 +301,9 @@ public class PlayerPerformanceService : DisposableMediatorSubscriberBase writer.Dispose(); File.Move(tmpFilePath, newFilePath); - _fileCacheManager.CreateSubstEntry(newFilePath); + var substEntry = _fileCacheManager.CreateSubstEntry(newFilePath); + if (substEntry != null) + substEntry.CompressedSize = fileEntry.CompressedSize; shrunken = true; // Make sure its a cache file before trying to delete it !!