Utility.cs 475 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Text;
  7. namespace BepInEx
  8. {
  9. public static class Utility
  10. {
  11. public static string ExecutingDirectory => Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).Replace(@"file:\", "");
  12. //shamelessly stolen from Rei
  13. public static string CombinePaths(params string[] parts) => parts.Aggregate(Path.Combine);
  14. }
  15. }