|
@@ -2,7 +2,6 @@
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Reflection.Emit;
|
|
|
-using BepInEx.Unix;
|
|
|
using HarmonyLib;
|
|
|
using MonoMod.RuntimeDetour;
|
|
|
using MonoMod.RuntimeDetour.Platforms;
|
|
@@ -17,7 +16,7 @@ namespace BepInEx.Preloader.RuntimeFixes
|
|
|
if (Utility.CurrentOs == Platform.Windows)
|
|
|
return;
|
|
|
|
|
|
- if (!LinuxConsoleDriver.UseMonoTtyDriver)
|
|
|
+ if (typeof(Console).Assembly.GetType("System.ConsoleDriver") == null)
|
|
|
{
|
|
|
// Mono version is too old, use our own TTY implementation instead
|
|
|
return;
|