17 lines
401 B
C#
17 lines
401 B
C#
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace Mirror.Weaver
|
|
{
|
|
static class Helpers
|
|
{
|
|
// This code is taken from SerializationWeaver
|
|
|
|
public static string UnityEngineDllDirectoryName()
|
|
{
|
|
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
|
|
return directoryName?.Replace(@"file:\", "");
|
|
}
|
|
}
|
|
}
|