compression is now optional
This commit is contained in:
		@@ -35,10 +35,13 @@ namespace AMXXRelease
 | 
			
		||||
				{
 | 
			
		||||
					System.Console.WriteLine("Mod failed to build: " + mod.GetName());
 | 
			
		||||
				}
 | 
			
		||||
				CompressDir(
 | 
			
		||||
					PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName()), 
 | 
			
		||||
					PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName())
 | 
			
		||||
					);
 | 
			
		||||
				if (m_Cfg.CompressPath() != null)
 | 
			
		||||
				{
 | 
			
		||||
					CompressDir(
 | 
			
		||||
						PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName()), 
 | 
			
		||||
						PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName())
 | 
			
		||||
						);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			return true;
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							@@ -21,20 +21,17 @@ namespace AMXXRelease
 | 
			
		||||
			m_Mods.Add(core);
 | 
			
		||||
			m_Mods.Add(cstrike);
 | 
			
		||||
 | 
			
		||||
			if (m_Cfg.MakeOpts().IndexOf("amd64") == -1)
 | 
			
		||||
			{
 | 
			
		||||
				ModDoD dod = new ModDoD();
 | 
			
		||||
				ModEsf esf = new ModEsf();
 | 
			
		||||
				ModNs ns = new ModNs();
 | 
			
		||||
				ModTFC tfc = new ModTFC();
 | 
			
		||||
				ModTs ts = new ModTs();
 | 
			
		||||
			ModDoD dod = new ModDoD();
 | 
			
		||||
			ModEsf esf = new ModEsf();
 | 
			
		||||
			ModNs ns = new ModNs();
 | 
			
		||||
			ModTFC tfc = new ModTFC();
 | 
			
		||||
			ModTs ts = new ModTs();
 | 
			
		||||
 | 
			
		||||
				m_Mods.Add(dod);
 | 
			
		||||
				m_Mods.Add(esf);
 | 
			
		||||
				m_Mods.Add(ns);
 | 
			
		||||
				m_Mods.Add(tfc);
 | 
			
		||||
				m_Mods.Add(ts);
 | 
			
		||||
			}
 | 
			
		||||
			m_Mods.Add(dod);
 | 
			
		||||
			m_Mods.Add(esf);
 | 
			
		||||
			m_Mods.Add(ns);
 | 
			
		||||
			m_Mods.Add(tfc);
 | 
			
		||||
			m_Mods.Add(ts);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		public virtual int GetMods()
 | 
			
		||||
 
 | 
			
		||||
@@ -59,12 +59,6 @@ namespace AMXXRelease
 | 
			
		||||
 | 
			
		||||
		private bool ValidateConfigPaths()
 | 
			
		||||
		{
 | 
			
		||||
			if ( !File.Exists( ABuilder.PropSlashes(m_Cfg.CompressPath()) ) )
 | 
			
		||||
			{
 | 
			
		||||
				Console.WriteLine("Failed to find compression program! Check 'compress' option in config.");
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			string source = ABuilder.PropSlashes(m_Cfg.GetSourceTree());
 | 
			
		||||
 | 
			
		||||
			if (!Directory.Exists(source))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user