123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.IO;
- using System.Linq;
- namespace BepInEx.Common
- {
-
-
-
- public static class Utility
- {
-
-
-
- public static string ExecutingDirectory => Path.GetDirectoryName(Environment.CommandLine);
-
-
-
- public static string PluginsDirectory => Path.Combine(ExecutingDirectory, "BepInEx");
-
-
-
-
-
- public static string CombinePaths(params string[] parts) => parts.Aggregate(Path.Combine);
-
-
-
-
-
- public static string ConvertToWWWFormat(string path)
- {
- return $"file://{path.Replace('\\', '/')}";
- }
- }
- }
|