Add MCDO (#80)

* update api

* mcd online editor impl

* most of chara data hub impl

* some state of things

* some refactoring

* random bullshit go

* more nearby impl

* add uid to peformance msg

* cleanup/homogenization

* some split, update nuget packages

* migrate to latest packages where possible, remove lz4net, do some split, idk

* some polish and cleanup

* more cleanup, beautification, etc.

* fixes and cleanups

---------

Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
This commit is contained in:
rootdarkarchon
2025-01-11 22:43:11 +01:00
committed by GitHub
parent 993bfc6ed4
commit f44f8df989
53 changed files with 5155 additions and 537 deletions

View File

@@ -1,5 +1,5 @@
using Dalamud.Utility;
using LZ4;
using K4os.Compression.LZ4.Legacy;
using MareSynchronos.API.Data;
using MareSynchronos.API.Dto.Files;
using MareSynchronos.API.Routes;
@@ -326,7 +326,7 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
_ = await fileBlockStream.ReadAsync(compressedFileContent, token).ConfigureAwait(false);
MungeBuffer(compressedFileContent);
var decompressedFile = LZ4Codec.Unwrap(compressedFileContent);
var decompressedFile = LZ4Wrapper.Unwrap(compressedFileContent);
var filePath = _fileDbManager.GetCacheFilePath(fileHash, fileExtension);
await _fileCompactor.WriteAllBytesAsync(filePath, decompressedFile, token).ConfigureAwait(false);