Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
        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)));
        }