MCPcopy Create free account
hub / github.com/IceClusters/icmysql / Program

Class Program

library/library-changer/Program.cs:3–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1namespace LibChanger
2{
3 class Program
4 {
5 public static String[] ignoreFiles = new string[]
6 {
7 "node_modules",
8 ".dll",
9 ".exe"
10 };
11
12 public static string[] handledExtensions = new string[]
13 {
14 ".lua", ".js", ".cs"
15 };
16
17 public static string[] ignoreExtensions = new string[]
18 {
19 "csproj"
20 };
21
22 public static string[] ignoreResources = new string[]
23 {
24 "icmysql"
25 };
26
27 static void Main(string[] args)
28 {
29 if (args.Length > 0)
30 {
31 ParseResourcesFolder(args[0]);
32 }
33 else
34 {
35 string currentPath = Environment.CurrentDirectory;
36 bool resourceFolderFound = false;
37 try
38 {
39 while (!resourceFolderFound)
40 {
41 string[] directories = Directory.GetDirectories(currentPath);
42 foreach (string directory in directories)
43 {
44 string[] parts = directory.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
45 string folderName = parts[parts.Length - 1];
46 if (folderName == "resources")
47 {
48 resourceFolderFound = true;
49 Console.WriteLine("Resource folder found at " + directory);
50 ParseResourcesFolder(directory);
51 break;
52 }
53 }
54 if (!resourceFolderFound)
55 {
56 currentPath = Path.GetDirectoryName(currentPath);
57 }
58 }
59 } catch(Exception err)
60 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected