Skip to content

Commit

Permalink
Replace Process.Start with Application.OpenURL
Browse files Browse the repository at this point in the history
  • Loading branch information
SliceCraft committed May 1, 2024
1 parent 291478a commit dc51fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions ChaosMod/Patches/GameNeworkManagerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ static void StartHostPatch()
{
if (ChaosMod.ConfigActivator.Value == "twitch")
{
try
{
Process.Start("http://localhost:8000");
}
catch { }
Application.OpenURL("http://localhost:8000");
}
return;
}
Expand Down
6 changes: 1 addition & 5 deletions ChaosMod/Patches/RoundManagerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ private static void UpdatePatch()
}
if (shortcut3.IsDown() && ChaosMod.ConfigActivator.Value == "twitch")
{
try
{
Process.Start("http://localhost:8000");
}
catch { }
Application.OpenURL("http://localhost:8000");
}

ChaosMod.getInstance().twitchIRCClient?.Update();
Expand Down

0 comments on commit dc51fbb

Please sign in to comment.