internal static string smethod_1(string filename, string[] path) { filename = Class1043.smethod_0(filename); if (filename == null) { return((string)null); } string str = (string)null; if (!Path.IsPathRooted(filename) && path != null) { foreach (string path1 in path) { string path2 = Path.Combine(path1, filename); if (File.Exists(path2)) { str = path2; break; } } } if (str == null && File.Exists(filename)) { str = filename; } return(str); }
internal static string[] smethod_2(string filename) { string str = (string)null; try { str = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); } catch (Exception ex) { } List <string> stringList = new List <string>(); filename = Class1043.smethod_0(filename); if (!string.IsNullOrEmpty(filename)) { stringList.Add(Path.GetDirectoryName(filename)); } if (!string.IsNullOrEmpty(str)) { stringList.Add(str); } return(stringList.ToArray()); }