mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 21:07:21 +01:00
update to api9
This commit is contained in:
parent
99f8060798
commit
f89f6c1216
33 changed files with 94 additions and 163 deletions
|
|
@ -64,7 +64,7 @@ public sealed class FileCompactor
|
|||
|
||||
public long GetFileSizeOnDisk(string filePath)
|
||||
{
|
||||
if (Dalamud.Utility.Util.IsLinux()) return new FileInfo(filePath).Length;
|
||||
if (Dalamud.Utility.Util.IsWine()) return new FileInfo(filePath).Length;
|
||||
|
||||
var clusterSize = GetClusterSize(filePath);
|
||||
if (clusterSize == -1) return new FileInfo(filePath).Length;
|
||||
|
|
@ -75,9 +75,9 @@ public sealed class FileCompactor
|
|||
|
||||
public async Task WriteAllBytesAsync(string filePath, byte[] decompressedFile, CancellationToken token)
|
||||
{
|
||||
await File.WriteAllBytesAsync(filePath, decompressedFile, token);
|
||||
await File.WriteAllBytesAsync(filePath, decompressedFile, token).ConfigureAwait(false);
|
||||
|
||||
if (Dalamud.Utility.Util.IsLinux() || !_mareConfigService.Current.UseCompactor)
|
||||
if (Dalamud.Utility.Util.IsWine() || !_mareConfigService.Current.UseCompactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue