Substitute textures inherit download size from original

This commit is contained in:
Loporrit
2025-02-24 10:15:11 +00:00
parent 0368fd6162
commit a9e8d6f8a8

View File

@@ -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 !!