|
@@ -1,5 +1,6 @@
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.Diagnostics;
|
|
using System.IO;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
@@ -14,7 +15,7 @@ namespace BepInEx.Common
|
|
/// <summary>
|
|
/// <summary>
|
|
/// The directory that the Koikatsu .exe is being run from.
|
|
/// The directory that the Koikatsu .exe is being run from.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public static string ExecutingDirectory => Path.GetDirectoryName(Environment.CommandLine);
|
|
|
|
|
|
+ public static string ExecutingDirectory => Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// The path that the plugins folder is located.
|
|
/// The path that the plugins folder is located.
|