mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:47:22 +01:00
fix crash on logout, change several logger.debug to verbose, adjustments to player cache generation, fixes to file scan manager, better handling disconnects, some refactoring, adjustments to intro UI, correct display of server state
This commit is contained in:
parent
7a58321ea0
commit
db4d5f37f9
21 changed files with 283 additions and 273 deletions
|
|
@ -9,20 +9,6 @@ namespace MareSynchronos.Models
|
|||
[JsonObject(MemberSerialization.OptIn)]
|
||||
public class CharacterData
|
||||
{
|
||||
[JsonProperty]
|
||||
public List<FileReplacement> AllReplacements => FileReplacements.Where(f => f.HasFileReplacement).GroupBy(f => f.Hash).Select(g =>
|
||||
{
|
||||
return new FileReplacement("")
|
||||
{
|
||||
ResolvedPath = g.First().ResolvedPath,
|
||||
GamePaths = g.SelectMany(g => g.GamePaths).Distinct().ToList(),
|
||||
Hash = g.First().Hash
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
[JsonProperty]
|
||||
public string CacheHash { get; set; } = string.Empty;
|
||||
|
||||
public List<FileReplacement> FileReplacements { get; set; } = new();
|
||||
|
||||
[JsonProperty]
|
||||
|
|
@ -54,9 +40,15 @@ namespace MareSynchronos.Models
|
|||
{
|
||||
return new CharacterCacheDto()
|
||||
{
|
||||
FileReplacements = AllReplacements.Select(f => f.ToFileReplacementDto()).ToList(),
|
||||
FileReplacements = FileReplacements.Where(f => f.HasFileReplacement).GroupBy(f => f.Hash).Select(g =>
|
||||
{
|
||||
return new FileReplacementDto()
|
||||
{
|
||||
GamePaths = g.SelectMany(g => g.GamePaths).Distinct().ToArray(),
|
||||
Hash = g.First().Hash
|
||||
};
|
||||
}).ToList(),
|
||||
GlamourerData = GlamourerString,
|
||||
Hash = CacheHash,
|
||||
JobId = JobId,
|
||||
ManipulationData = ManipulationString
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue