Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Dec 12, 2017
1 parent cb0c496 commit a904935
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Assets/XLua/Src/Editor/Hotfix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,15 @@ public static void HotfixInject()
#if UNITY_EDITOR_OSX
var mono_path = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName),
"../MonoBleedingEdge/bin/mono");
if(!File.Exists(mono_path))
{
mono_path = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName),
"../../MonoBleedingEdge/bin/mono");
}
if(!File.Exists(mono_path))
{
UnityEngine.Debug.LogError("can not find mono!");
}
#elif UNITY_EDITOR_WIN
var mono_path = Path.Combine(Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName),
"Data/MonoBleedingEdge/bin/mono.exe");
Expand Down

0 comments on commit a904935

Please sign in to comment.