-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (23 loc) · 726 Bytes
/
Program.cs
File metadata and controls
29 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace UnityProjectAnalyzer;
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("Usage: ./tool.exe <unity_project_path> <output_folder_path>");
return;
}
string projectPath = args[0];
string outputPath = args[1];
if (!Directory.Exists(projectPath))
{
Console.WriteLine($"Error: Project path '{projectPath}' does not exist.");
return;
}
Directory.CreateDirectory(outputPath);
var analyzer = new UnityProjectAnalyzer(projectPath, outputPath);
analyzer.Analyze();
Console.WriteLine("Analysis completed successfully.");
}
}