Skip to content

Commit e0830be

Browse files
committed
GetErrorFunc 修改,避免混淆特定文件名称
1 parent 3c7afa9 commit e0830be

11 files changed

+28
-2
lines changed

tolua/Assets/Plugins/Debugger.dll

7.5 KB
Binary file not shown.

tolua/Assets/Plugins/Debugger.dll.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tolua/Assets/Source/Base/LuaScriptMgr.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,10 +1968,10 @@ static string GetErrorFunc(int skip)
19681968
sf = st.GetFrame(pos++);
19691969
file = sf.GetFileName();
19701970
file = Path.GetFileName(file);
1971-
} while (!file.Contains("Wrap"));
1971+
} while (!file.Contains("Wrap."));
19721972

19731973
int index1 = file.LastIndexOf('\\');
1974-
int index2 = file.LastIndexOf("Wrap");
1974+
int index2 = file.LastIndexOf("Wrap.");
19751975
string className = file.Substring(index1 + 1, index2 - index1 - 1);
19761976
return string.Format("{0}.{1}", className, sf.GetMethod().Name);
19771977
}

tolua/Assets/UnityVS.meta

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tolua/Assets/UnityVS/Editor.meta

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
guid: 38d405c119fcc7c4e83d4a478a40ff2f
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
guid: 4ad02dc83da735c4e8d945332b9202f6
2 KB
Binary file not shown.

0 commit comments

Comments
 (0)