Break up this call to better isolate where the NullReferenceException is happening

This commit is contained in:
Jordan Dominion
2025-07-31 23:25:02 -04:00
parent 58a58bcae0
commit 61b5f4a395
@@ -148,21 +148,25 @@ namespace Tgstation.Server.Host.Components.Engine
var installationIOManager = IOManager.CreateResolverForSubdirectory(path);
var supportsMapThreads = version.Version >= MapThreadsVersion;
var dreamDaemonName = GetDreamDaemonName(
version.Version!,
out var supportsCli);
var dreamDaemonPath = installationIOManager.ResolvePath(
installationIOManager.ConcatPath(
ByondBinPath,
dreamDaemonName));
var dreamMakerPath = installationIOManager.ResolvePath(
installationIOManager.ConcatPath(
ByondBinPath,
DreamMakerName));
return ValueTask.FromResult<IEngineInstallation>(
new ByondInstallation(
installationIOManager,
installationTask,
version,
installationIOManager.ResolvePath(
installationIOManager.ConcatPath(
ByondBinPath,
GetDreamDaemonName(
version.Version!,
out var supportsCli))),
installationIOManager.ResolvePath(
installationIOManager.ConcatPath(
ByondBinPath,
DreamMakerName)),
dreamDaemonPath,
dreamMakerPath,
supportsCli,
supportsMapThreads));
}