Skip to content

Commit

Permalink
如果没安装Tools提示“please install the Tools”
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Mar 3, 2017
1 parent 8933a33 commit bc867ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/XLua/Doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## xLua发布包怎么用?

xLua目前以zip包形式发布,在Assets目录下解压即可
xLua目前以zip包形式发布,在工程目录下解压即可

## xLua可以放别的目录吗?

Expand All @@ -24,6 +24,10 @@ ios和osx需要在mac下编译。

[Hotfix操作指南](hotfix.md)一步步操作。

## 报“please install the Tools”

没有把Tools安装到Assets平级目录,安装包,或者master下都能找到这个目录。

## 报“This delegate/interface must add to CSharpCallLua : XXX”异常怎么解决?

在编辑器下xLua不生成代码都可以运行,出现这种提示,要么是该类型没加CSharpCallLua,要么是加之前生成过代码,没重新执行生成。
Expand Down
7 changes: 7 additions & 0 deletions Assets/XLua/Src/Editor/Hotfix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ public static void HotfixInject()
{
if (EditorApplication.isCompiling || Application.isPlaying)
{
UnityEngine.Debug.LogWarning("compiling.., skip this operation.");
return;
}

Expand All @@ -837,6 +838,12 @@ public static void HotfixInject()
"Data/MonoBleedingEdge/bin/mono.exe");
#endif
var inject_tool_path = "./Tools/XLuaHotfixInject.exe";
if (!File.Exists(inject_tool_path))
{
UnityEngine.Debug.LogError("please install the Tools");
return;
}

var assembly_csharp_path = "./Library/ScriptAssemblies/Assembly-CSharp.dll";

List<string> args = new List<string>() { inject_tool_path, assembly_csharp_path};
Expand Down

0 comments on commit bc867ff

Please sign in to comment.