Skip to content

Commit

Permalink
Store the resolved game messages in the 'MessagesDirectory'
Browse files Browse the repository at this point in the history
  • Loading branch information
ArachisH committed Mar 22, 2024
1 parent b064ad2 commit 90f34e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tanji.Core/Services/Implementations/ClientHandlerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public CachedGame PatchClient(HPlatform platform, string? clientPath = null)
using FileStream gameSerializationStream = File.Create(Path.Combine(PatchedClientsDirectory.FullName, $"{identifier}_{game.Revision}.json"));
JsonSerializer.Serialize(gameSerializationStream, cachedGame, SerializerOptions);

using FileStream messagesSerializationStream = File.Create(Path.Combine(MessagesDirectory.FullName, $"{game.Revision}.json"));
JsonSerializer.Serialize(messagesSerializationStream, new CachedIdentifiers { Outgoing = outgoing, Incoming = incoming }, SerializerOptions);

return cachedGame;
}
public bool TryGetIdentifiers(string? revision, out Outgoing? outgoing, out Incoming? incoming)
Expand Down

0 comments on commit 90f34e6

Please sign in to comment.