Skip to content

Commit

Permalink
Prevent MonoMod env vars from leaking to Everest via MiniInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ade committed Jul 23, 2021
1 parent b9f887c commit a287639
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MiniInstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ public static void MakeLargeAddressAware(string asm) {

public static void StartGame() {
LogLine("Restarting Celeste");

// Let's not pollute the game with our MonoMod env vars.
Environment.SetEnvironmentVariable("MONOMOD_DEPDIRS", "");
Environment.SetEnvironmentVariable("MONOMOD_MODS", "");
Environment.SetEnvironmentVariable("MONOMOD_DEPENDENCY_MISSING_THROW", "");

Process game = new Process();
// If the game was installed via Steam, it should restart in a Steam context on its own.
if (Environment.OSVersion.Platform == PlatformID.Unix ||
Expand Down

0 comments on commit a287639

Please sign in to comment.