-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
47 lines (36 loc) · 1.1 KB
/
Copy pathProgram.cs
File metadata and controls
47 lines (36 loc) · 1.1 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.IO;
using Editor_Reader;
using OsuParsers.Decoders;
using System.Collections.Generic;
using dotenv.net;
namespace SVOscillator
{
class Program
{
static void Main(string[] args)
{
DotEnv.Load();
string[] pathBaseParts = Environment.GetEnvironmentVariable("SONGS_FOLDER").Split("/");
string pathBase = Path.Combine(pathBaseParts);
while (true)
{
string mode = Utility.ReadString("Enter mode or 'q' to quit");
switch (mode)
{
case "o":
Oscillator.Generate(pathBase);
break;
case "t":
TickrateManipulator.Generate(pathBase);
break;
case "q":
return;
default:
Console.WriteLine($"Invalid mode '{mode}'. Mode must be one of 'o', 't'.");
break;
}
}
}
}
}