forked from LordLaffey/MuseDashLightPlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
48 lines (43 loc) · 1.35 KB
/
main.cpp
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
48
/**
* __ __ _____ __ ______
* /\ "-./ \ /\ __-. /\ \ /\ == \
* \ \ \-./\ \ \ \ \/\ \ \ \ \____ \ \ _-/
* \ \_\ \ \_\ \ \____- \ \_____\ \ \_\
* \/_/ \/_/ \/____/ \/_____/ \/_/
*
* @version v0.05
*/
#include "header.cpp"
#include "player.cpp"
#include "settings.cpp"
#include "recorder.cpp"
using namespace std;
int main()
{
ClearScreen();
setting.load();
Music.Load();
while(true)
{
ClearScreen();
cout << "===============================MDLP Main Menu=============================" << endl;
cout << "1. Play(p)" << endl;
cout << "2. Record(r)" << endl;
cout << "3. Music(m)" <<endl;
cout << "4. Settings(s)" << endl;
cout << "5. Quit(q)" << endl;
cout << "==========================================================================" << endl;
char c = WaitForInput();
switch(c)
{
case 'p': case 'P': PlayerMain(); break;
case 'r': case 'R': RecordMain(); break;
case 'm': case 'M': Music.MusicMain(); break;
case 's': case 'S': SettingsMain(); break;
case 'q': case 'Q': goto end;
}
}
end:
ClearScreen();
Print("Thanks for playing MDLP >w<", 20);
}