Skip to content

Commit

Permalink
Apply custom Hermes settings to actual Process. Fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
0blu committed Nov 18, 2023
1 parent de168f4 commit 6de9e46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WinterspringLauncher/LauncherLogic.StartGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ public void StartGame()
if (splittedRealmlist.Length == 2)
hermesSettingsOverwrite.Add("ServerPort", splittedRealmlist.Last());

if (serverInfo.HermesSettings != null)
{
foreach (var customSettings in serverInfo.HermesSettings)
hermesSettingsOverwrite.Add(customSettings.Key, customSettings.Value);
}

_hermesProcess = LauncherActions.StartHermesProxy(_config.HermesProxyLocation, modernBuild, hermesSettingsOverwrite, (logLine) => { _model.AddLogEntry(logLine); });
_model.SetHermesPid(_hermesProcess.Id);
_hermesProcess.Exited += (a, e) =>
Expand Down

0 comments on commit 6de9e46

Please sign in to comment.