mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-05-18 14:24:12 +02:00
26 lines
716 B
C#
26 lines
716 B
C#
using System.Diagnostics;
|
|
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:\", "");
|
|
}
|
|
|
|
public static string DestinationFileFor(string outputDir, string assemblyPath)
|
|
{
|
|
string fileName = Path.GetFileName(assemblyPath);
|
|
Debug.Assert(fileName != null, "fileName != null");
|
|
|
|
return Path.Combine(outputDir, fileName);
|
|
}
|
|
}
|
|
}
|