Skip to content

Commit

Permalink
unity2019版本的注入
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jul 1, 2020
1 parent 841ea8e commit c14739c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/XLua/Src/Editor/Hotfix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ public static void HotfixInject(string assemblyDir)
return;
}

var assembly_csharp_path = "./Library/ScriptAssemblies/Assembly-CSharp.dll";
var assembly_csharp_path = assemblyDir + "Assembly-CSharp.dll";
var id_map_file_path = CSObjectWrapEditor.GeneratorConfig.common_path + "Resources/hotfix_id_map.lua.txt";
var hotfix_cfg_in_editor = CSObjectWrapEditor.GeneratorConfig.common_path + "hotfix_cfg_in_editor.data";

Expand Down Expand Up @@ -1702,7 +1702,7 @@ public static void HotfixInject(string assemblyDir)
var idMapFileNames = new List<string>();
foreach (var injectAssemblyPath in injectAssemblyPaths)
{
args[0] = injectAssemblyPath.Replace('\\', '/');
args[0] = assemblyDir + Path.GetFileName(injectAssemblyPath);
if (ContainNotAsciiChar(args[0]))
{
throw new Exception("project path must contain only ascii characters");
Expand Down

0 comments on commit c14739c

Please sign in to comment.