Changed "Player" to "Client" in error messages about clients (attempt at some sort of error message consistency)
P.S. Happy 1000 Revisions, SourceMod!
7 public enum BasePlatform
15 public string SourceBase;
16 public string OutputBase;
17 public string BuilderPath;
18 public string CompressOptions;
19 public string SVNVersion;
20 public string ProductVersion;
21 public string Compressor;
22 public string BuildOptions;
23 public builder.BasePlatform Platform;
27 if ((int)System.Environment.OSVersion.Platform == 128)
29 Platform = BasePlatform.Platform_Linux;
33 Platform = BasePlatform.Platform_Windows;
37 public static string PathFormat(string format, params string [] args)
39 string temp = string.Format(format, args);
40 return temp.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
43 public bool ReadFromFile(string file)
46 StreamReader sr = null;
49 sr = new StreamReader(file);
52 string delim = "\t \n\r\v";
55 while ( (line = sr.ReadLine()) != null )
57 line = line.Trim(delim.ToCharArray());
58 if (line.Length < 1 || line[0] == ';')
62 string [] s = line.Split(split.ToCharArray());
64 if (s.GetLength(0) >= 1)
67 if (s.GetLength(0) >= 2)
69 for (int i=1; i<s.GetLength(0); i++)
74 key = key.Trim(delim.ToCharArray());
75 val = val.Trim(delim.ToCharArray());
76 if (key.CompareTo("SourceBase") == 0)
80 else if (key.CompareTo("OutputBase") == 0)
84 else if (key.CompareTo("BuilderPath") == 0)
88 else if (key.CompareTo("CompressOptions") == 0)
90 CompressOptions = val;
92 else if (key.CompareTo("SVNVersion") == 0)
96 else if (key.CompareTo("ProductVersion") == 0)
100 else if (key.CompareTo("Compressor") == 0)
104 else if (key.CompareTo("BuildOptions") == 0)
111 catch (System.Exception e)
113 Console.WriteLine("Unable to read {0:s}: {1:s}", file, e.Message);