static IEnumerator BuildWeaverCoreRoutine(FileInfo outputPath, BuildTask <BuildOutput> task) { if (task == null) { task = new BuildTask <BuildOutput>(); } yield return(BuildPartialWeaverCoreRoutine(outputPath, task)); if (!task.Result.Success) { yield break; } task.Result.Success = false; yield return(BuildWeaverCoreGameRoutine(null, task)); if (!task.Result.Success) { yield break; } BundleTools.BuildAndEmbedAssetBundles(null, outputPath, typeof(BuildTools).GetMethod(nameof(StartHollowKnight))); }
static IEnumerator BuildModRoutine(FileInfo outputPath, BuildTask <BuildOutput> task) { if (task == null) { task = new BuildTask <BuildOutput>(); } yield return(BuildPartialModAsmRoutine(outputPath, task)); if (!task.Result.Success) { yield break; } task.Result.Success = false; yield return(BuildWeaverCoreGameRoutine(null, task)); if (!task.Result.Success) { yield break; } var weaverCoreOutputLocation = PathUtilities.AddSlash(outputPath.Directory.FullName) + "WeaverCore.dll"; File.Copy(WeaverCoreBuildLocation.FullName, weaverCoreOutputLocation, true); BundleTools.BuildAndEmbedAssetBundles(outputPath, new FileInfo(weaverCoreOutputLocation), typeof(BuildTools).GetMethod(nameof(StartHollowKnight))); }