mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 22:10:45 -05:00
Improve bot loading logging
This commit is contained in:
parent
42a3913ace
commit
4fd2a48972
@ -5,6 +5,7 @@ using EFT;
|
|||||||
using Aki.Reflection.Patching;
|
using Aki.Reflection.Patching;
|
||||||
using Aki.Reflection.Utils;
|
using Aki.Reflection.Utils;
|
||||||
using Aki.SinglePlayer.Models.RaidFix;
|
using Aki.SinglePlayer.Models.RaidFix;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Aki.SinglePlayer.Patches.RaidFix
|
namespace Aki.SinglePlayer.Patches.RaidFix
|
||||||
{
|
{
|
||||||
@ -65,13 +66,15 @@ namespace Aki.SinglePlayer.Patches.RaidFix
|
|||||||
// load bundles for bot profile
|
// load bundles for bot profile
|
||||||
var continuation = new BundleLoader(taskScheduler);
|
var continuation = new BundleLoader(taskScheduler);
|
||||||
__result = taskAwaiter.ContinueWith(continuation.LoadBundles, taskScheduler).Unwrap();
|
__result = taskAwaiter.ContinueWith(continuation.LoadBundles, taskScheduler).Unwrap();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Profile GetFirstResult(Task<Profile[]> task)
|
private static Profile GetFirstResult(Task<Profile[]> task)
|
||||||
{
|
{
|
||||||
var result = task.Result[0];
|
var result = task.Result[0];
|
||||||
Logger.LogInfo($"Loading bot profile from server. role: {result.Info.Settings.Role} side: {result.Side}");
|
Logger.LogInfo($"{DateTime.Now:T} Loading bot {result.Info.Nickname} profile from server. role: {result.Info.Settings.Role} side: {result.Side}");
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user