[change] 日志和异常文本换成英文,方便海外开发者
parent
f2807f4838
commit
5857696b56
|
@ -68,7 +68,7 @@ namespace HybridCLR.Editor.ABI
|
||||||
TypeDef typeDef = type.ToTypeDefOrRef().ResolveTypeDef();
|
TypeDef typeDef = type.ToTypeDefOrRef().ResolveTypeDef();
|
||||||
if (typeDef == null)
|
if (typeDef == null)
|
||||||
{
|
{
|
||||||
throw new Exception($"type:{type} 未能找到定义。请尝试 `HybridCLR/Genergate/LinkXml`,然后Build一次生成AOT dll,再重新生成桥接函数");
|
throw new Exception($"type:{type} definition could not be found. Please try `HybridCLR/Genergate/LinkXml`, then Build once to generate the AOT dll, and then regenerate the bridge function");
|
||||||
}
|
}
|
||||||
if (typeDef.IsEnum)
|
if (typeDef.IsEnum)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
if (!string.IsNullOrEmpty(oldIl2cppPath))
|
if (!string.IsNullOrEmpty(oldIl2cppPath))
|
||||||
{
|
{
|
||||||
Environment.SetEnvironmentVariable("UNITY_IL2CPP_PATH", "");
|
Environment.SetEnvironmentVariable("UNITY_IL2CPP_PATH", "");
|
||||||
Debug.Log($"[CheckSettings] 清除 UNITY_IL2CPP_PATH, 旧值为:'{oldIl2cppPath}'");
|
Debug.Log($"[CheckSettings] clean process environment variable: UNITY_IL2CPP_PATH, old vlaue:'{oldIl2cppPath}'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -32,7 +32,7 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
if (curIl2cppPath != SettingsUtil.LocalIl2CppDir)
|
if (curIl2cppPath != SettingsUtil.LocalIl2CppDir)
|
||||||
{
|
{
|
||||||
Environment.SetEnvironmentVariable("UNITY_IL2CPP_PATH", SettingsUtil.LocalIl2CppDir);
|
Environment.SetEnvironmentVariable("UNITY_IL2CPP_PATH", SettingsUtil.LocalIl2CppDir);
|
||||||
Debug.Log($"[CheckSettings] UNITY_IL2CPP_PATH 当前值为:'{curIl2cppPath}',更新为:'{SettingsUtil.LocalIl2CppDir}'");
|
Debug.Log($"[CheckSettings] UNITY_IL2CPP_PATH old value:'{curIl2cppPath}', new value:'{SettingsUtil.LocalIl2CppDir}'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!globalSettings.enable)
|
if (!globalSettings.enable)
|
||||||
|
@ -44,20 +44,20 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
ScriptingImplementation targetScriptingImplementation = ScriptingImplementation.IL2CPP;
|
ScriptingImplementation targetScriptingImplementation = ScriptingImplementation.IL2CPP;
|
||||||
if (curScriptingImplementation != targetScriptingImplementation)
|
if (curScriptingImplementation != targetScriptingImplementation)
|
||||||
{
|
{
|
||||||
Debug.LogError($"[CheckSettings] 当前ScriptingBackend是:{curScriptingImplementation},已经自动切换为:{targetScriptingImplementation}");
|
Debug.LogError($"[CheckSettings] current ScriptingBackend:{curScriptingImplementation},have been switched to:{targetScriptingImplementation} automatically");
|
||||||
PlayerSettings.SetScriptingBackend(buildTargetGroup, targetScriptingImplementation);
|
PlayerSettings.SetScriptingBackend(buildTargetGroup, targetScriptingImplementation);
|
||||||
}
|
}
|
||||||
|
|
||||||
var installer = new Installer.InstallerController();
|
var installer = new Installer.InstallerController();
|
||||||
if (!installer.HasInstalledHybridCLR())
|
if (!installer.HasInstalledHybridCLR())
|
||||||
{
|
{
|
||||||
throw new BuildFailedException($"你没有初始化HybridCLR,请通过菜单'HybridCLR/Installer'安装");
|
throw new BuildFailedException($"You have not initialized HybridCLR, please install it via menu 'HybridCLR/Installer'");
|
||||||
}
|
}
|
||||||
|
|
||||||
HybridCLRSettings gs = SettingsUtil.HybridCLRSettings;
|
HybridCLRSettings gs = SettingsUtil.HybridCLRSettings;
|
||||||
if (((gs.hotUpdateAssemblies?.Length + gs.hotUpdateAssemblyDefinitions?.Length) ?? 0) == 0)
|
if (((gs.hotUpdateAssemblies?.Length + gs.hotUpdateAssemblyDefinitions?.Length) ?? 0) == 0)
|
||||||
{
|
{
|
||||||
Debug.LogWarning("[CheckSettings] HybridCLRSettings中未配置任何热更新模块");
|
Debug.LogWarning("[CheckSettings] No hot update modules configured in HybridCLRSettings");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,11 +33,11 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(hotUpdateDll))
|
if (string.IsNullOrWhiteSpace(hotUpdateDll))
|
||||||
{
|
{
|
||||||
throw new BuildFailedException($"热更新 assembly 名不能为空");
|
throw new BuildFailedException($"hot update assembly name cann't be empty");
|
||||||
}
|
}
|
||||||
if (!hotUpdateDllSet.Add(hotUpdateDll))
|
if (!hotUpdateDllSet.Add(hotUpdateDll))
|
||||||
{
|
{
|
||||||
throw new BuildFailedException($"热更新 assembly:{hotUpdateDll} 在列表中重复,请除去重复条目");
|
throw new BuildFailedException($"hot update assembly:{hotUpdateDll} is duplicated");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
if (assemblies.Select(Path.GetFileNameWithoutExtension).All(ass => ass != hotUpdateDllName)
|
if (assemblies.Select(Path.GetFileNameWithoutExtension).All(ass => ass != hotUpdateDllName)
|
||||||
&& string.IsNullOrEmpty(assResolver.ResolveAssembly(hotUpdateDllName, false)))
|
&& string.IsNullOrEmpty(assResolver.ResolveAssembly(hotUpdateDllName, false)))
|
||||||
{
|
{
|
||||||
throw new BuildFailedException($"热更新 assembly:{hotUpdateDllName} 不存在,请检查拼写错误");
|
throw new BuildFailedException($"hot update assembly:{hotUpdateDllName} doesn't exist");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ namespace HybridCLR.Editor.BuildProcessors
|
||||||
bool reserved = allHotUpdateDllNames.All(dll => !assName.Equals(dll, StringComparison.Ordinal));
|
bool reserved = allHotUpdateDllNames.All(dll => !assName.Equals(dll, StringComparison.Ordinal));
|
||||||
if (!reserved)
|
if (!reserved)
|
||||||
{
|
{
|
||||||
Debug.Log($"[FilterHotFixAssemblies] 过滤热更新assembly:{assName}");
|
Debug.Log($"[FilterHotFixAssemblies] filter assembly:{assName}");
|
||||||
}
|
}
|
||||||
return reserved;
|
return reserved;
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
|
|
|
@ -113,7 +113,7 @@ namespace HybridCLR.Editor.Commands
|
||||||
|
|
||||||
if (report.summary.result != UnityEditor.Build.Reporting.BuildResult.Succeeded)
|
if (report.summary.result != UnityEditor.Build.Reporting.BuildResult.Succeeded)
|
||||||
{
|
{
|
||||||
throw new Exception("GenerateStripedAOTDlls 失败");
|
throw new Exception("GenerateStripedAOTDlls failed");
|
||||||
}
|
}
|
||||||
Debug.Log($"GenerateStripedAOTDlls target:{target} group:{group} path:{outputPath}");
|
Debug.Log($"GenerateStripedAOTDlls target:{target} group:{group} path:{outputPath}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,11 @@ namespace HybridCLR.Editor.Meta
|
||||||
{
|
{
|
||||||
if (SettingsUtil.HotUpdateAssemblyNamesIncludePreserved.Contains(assemblyName))
|
if (SettingsUtil.HotUpdateAssemblyNamesIncludePreserved.Contains(assemblyName))
|
||||||
{
|
{
|
||||||
throw new Exception($"resolve 热更新 dll:{assemblyName} 失败!请确保已经编译了热更新dll或者外部热更新路径中配置了正确的值。更多请参阅常见错误文档");
|
throw new Exception($"resolve Hot update dll:{assemblyName} failed! Please make sure that this hot update dll exists or the search path is configured in the external hot update path.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new Exception($"resolve AOT dll:{assemblyName} 失败! 请确保主工程已经引用了该dll并且正确生成了裁剪后的AOT dll。更多请参阅常见错误文档");
|
throw new Exception($"resolve AOT dll:{assemblyName} failed! Please make sure that the AOT project has referenced the dll and generated the trimmed AOT dll correctly.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -92,7 +92,7 @@ namespace HybridCLR.Editor.Meta
|
||||||
TypeDef typeDef = a.ToTypeDefOrRef().ResolveTypeDef();
|
TypeDef typeDef = a.ToTypeDefOrRef().ResolveTypeDef();
|
||||||
if (typeDef == null)
|
if (typeDef == null)
|
||||||
{
|
{
|
||||||
throw new Exception($"type:{a} 未能找到定义");
|
throw new Exception($"type:{a} definition could not be found");
|
||||||
}
|
}
|
||||||
if (typeDef.IsEnum)
|
if (typeDef.IsEnum)
|
||||||
{
|
{
|
||||||
|
@ -109,7 +109,7 @@ namespace HybridCLR.Editor.Meta
|
||||||
TypeDef typeDef = gia.GenericType.ToTypeDefOrRef().ResolveTypeDef();
|
TypeDef typeDef = gia.GenericType.ToTypeDefOrRef().ResolveTypeDef();
|
||||||
if (typeDef == null)
|
if (typeDef == null)
|
||||||
{
|
{
|
||||||
throw new Exception($"type:{a} 未能找到定义");
|
throw new Exception($"type:{a} definition could not be found");
|
||||||
}
|
}
|
||||||
if (typeDef.IsEnum)
|
if (typeDef.IsEnum)
|
||||||
{
|
{
|
||||||
|
|
|
@ -400,7 +400,7 @@ namespace HybridCLR.Editor.MethodBridge
|
||||||
TypeDef typeDef = type.ToTypeDefOrRef().ResolveTypeDef();
|
TypeDef typeDef = type.ToTypeDefOrRef().ResolveTypeDef();
|
||||||
if (typeDef == null)
|
if (typeDef == null)
|
||||||
{
|
{
|
||||||
throw new Exception($"type:{type} 未能找到定义。请尝试 `HybridCLR/Genergate/LinkXml`,然后Build一次生成AOT dll,再重新生成桥接函数");
|
throw new Exception($"type:{type} definition could not be found. Please try `HybridCLR/Genergate/LinkXml`, then Build once to generate the AOT dll, and then regenerate the bridge function");
|
||||||
}
|
}
|
||||||
if (typeDef.IsEnum)
|
if (typeDef.IsEnum)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace HybridCLR.Editor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogError($"{nameof(ScriptableSingleton<T>)}: 请指定单例存档路径! ");
|
Debug.LogError($"save location of {nameof(ScriptableSingleton<T>)} is invalid");
|
||||||
}
|
}
|
||||||
return s_Instance;
|
return s_Instance;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ namespace HybridCLR.Editor
|
||||||
{
|
{
|
||||||
if (allAsses.Contains(assemblyName))
|
if (allAsses.Contains(assemblyName))
|
||||||
{
|
{
|
||||||
throw new Exception($"[HotUpdateAssemblyNamesIncludePreserved] assembly:'{assemblyName}' 重复");
|
throw new Exception($"[HotUpdateAssemblyNamesIncludePreserved] assembly:'{assemblyName}' is duplicated");
|
||||||
}
|
}
|
||||||
allAsses.Add(assemblyName);
|
allAsses.Add(assemblyName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue