Skip to content

Commit

Permalink
refactor: adjust test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ArachisH committed Jun 23, 2024
1 parent 3e12e9f commit 38ddfa3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Tanji.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,19 @@ static void CleanUp(PosixSignalContext context)

public async Task RunAsync(CancellationToken cancellationToken = default)
{
_webInterception.Start();
_logger.LogInformation("Intercepting Game Token(s)...");
do
{
string ticket = true ? "hhus.ABC.v4" : await _webInterception.InterceptTicketAsync(cancellationToken).ConfigureAwait(false);
_logger.LogInformation("Game Ticket: {ticket}", ticket);
_logger.LogInformation("Ticket Acquired: {ticket}", ticket);
_webInterception.Stop();

IGame game = await _clientHandler.PatchClientAsync(HPlatform.Flash).ConfigureAwait(false);
_logger.LogInformation("Client Patched : {game.path}", game.Path);

var context = new HConnectionContext(game);
_ = await _connectionHandler.LaunchAndInterceptConnectionAsync(ticket, context, cancellationToken).ConfigureAwait(false);

HConnection connection = await _connectionHandler.LaunchAndInterceptConnectionAsync(ticket, context, cancellationToken);
await connection.AttachNodesAsync(cancellationToken).ConfigureAwait(false);
}
while (!cancellationToken.IsCancellationRequested);
}
Expand Down

0 comments on commit 38ddfa3

Please sign in to comment.