Weaver WeaveFromFile: remove unused parameter

This commit is contained in:
vis2k 2021-08-24 23:15:36 +08:00
parent e8cf20847d
commit 95b009a126

View File

@ -119,7 +119,7 @@ static void OnCompilationFinished(string assemblyPath, CompilerMessage[] message
dependencyPaths.Add(Path.GetDirectoryName(mirrorRuntimeDll)); dependencyPaths.Add(Path.GetDirectoryName(mirrorRuntimeDll));
dependencyPaths.Add(Path.GetDirectoryName(unityEngineCoreModuleDLL)); dependencyPaths.Add(Path.GetDirectoryName(unityEngineCoreModuleDLL));
if (!WeaveFromFile(assemblyPath, dependencyPaths.ToArray(), mirrorRuntimeDll)) if (!WeaveFromFile(assemblyPath, dependencyPaths.ToArray()))
{ {
// Set false...will be checked in \Editor\EnterPlayModeSettingsCheck.CheckSuccessfulWeave() // Set false...will be checked in \Editor\EnterPlayModeSettingsCheck.CheckSuccessfulWeave()
SessionState.SetBool("MIRROR_WEAVE_SUCCESS", false); SessionState.SetBool("MIRROR_WEAVE_SUCCESS", false);
@ -149,7 +149,7 @@ static HashSet<string> GetDependecyPaths(string assemblyPath)
} }
// helper function to invoke Weaver with an AssemblyDefinition from a // helper function to invoke Weaver with an AssemblyDefinition from a
// file path, with dependencies added. // file path, with dependencies added.
static bool WeaveFromFile(string assemblyPath, string[] dependencies, string mirrorAssemblyPath) static bool WeaveFromFile(string assemblyPath, string[] dependencies)
{ {
// open the assembly file as stream // open the assembly file as stream
using (FileStream stream = new FileStream(assemblyPath, FileMode.Open, FileAccess.ReadWrite)) using (FileStream stream = new FileStream(assemblyPath, FileMode.Open, FileAccess.ReadWrite))