Ejemplo n.º 1
0
        private Task DoStuff_BuildModdedExe()
        {
            return(Task.Factory.StartNew(() =>
            {
                ModManager.GameDirectory.ContainingFile(RuntimeModController.Log.LogfileName).Delete();
                DoStuff_EnsureDepenciesAreLoaded();

                var newModConfig = new ModdingEnvironmentWriter(
                    found_valid_mods_data.Where(el => (el.Item3 != null) && ((bool)el.Item3.ItemArray[1])).Select(el => el.Item1).ToArray(),
                    found_valid_mods_data.Where(el => (el.Item3 == null) || !((bool)el.Item3.ItemArray[1])).Select(el => el.Item1).ToArray(),
                    false
                    );
                newModConfig.SaveEnvironmentConfiguration(ModManager.GameDirectory.ContainingFile(ModManager.config_file_name));
                is_build_required = false;
            }));
        }
Ejemplo n.º 2
0
        private Task DoStuff_BuildModdedExe()
        {
            return Task.Factory.StartNew(() =>
            {
                ModManager.GameDirectory.ContainingFile(RuntimeModController.Log.LogfileName).Delete();
                DoStuff_EnsureDepenciesAreLoaded();

                var newModConfig = new ModdingEnvironmentWriter(
                    found_valid_mods_data.Where(el => (el.Item3 != null) && ((bool)el.Item3.ItemArray[1])).Select(el => el.Item1).ToArray(),
                    found_valid_mods_data.Where(el => (el.Item3 == null) || !((bool)el.Item3.ItemArray[1])).Select(el => el.Item1).ToArray(),
                    false
                    );
                newModConfig.SaveEnvironmentConfiguration(ModManager.GameDirectory.ContainingFile(ModManager.config_file_name));
                is_build_required = false;
            });
        }