using System; using System.Diagnostics; using System.IO; namespace AMXXRelease { /// /// Summary description for Class1. /// class Builder { public Config m_Cfg; private string m_AmxxPc; public Builder() { m_Cfg = new Config(); m_AmxxPc = m_Cfg.GetSourceTree() + "\\plugins\\amxxpc.exe"; } [STAThread] static void Main(string[] args) { Builder b = new Builder(); Release15 r15 = new Release15(); if (!b.Build(r15)) { System.Console.WriteLine("Build failed: " + r15.GetName()); } else { System.Console.WriteLine("Build succeeded!"); } } public bool Build(ABuild build) { int num = build.GetMods(); AMod mod; for (int i=0; i=0; i--) { if (input[i] == '\\' && i != input.Length-1) { return input.Substring(i+1, input.Length-i-1); } } return input; } public bool BuildModModules(AMod mod) { int num = mod.GetModules(); Module module; string binary, basedir; basedir = m_Cfg.OutputPath(); basedir += "\\" + mod.GetModPath(); string dir; for (int i=0; i