-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFOD.cpp
More file actions
40 lines (33 loc) · 1.06 KB
/
Copy pathFOD.cpp
File metadata and controls
40 lines (33 loc) · 1.06 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
#include <iostream>
#include "FilePathDialog.h"
#include "CreateRegKeyValue.h"
using namespace std;
int main()
{
bool check = true;
int count = 0;
char answer;
while(check == true) { //loop until the user answers with N/n
if(count < 1) {
cout << "Select an exe file. \n\n";
CreateR(); //used just for selecting the first program/game
count++;
}
if (count > 0) {
cout << "Do you still wish to add files? y/n: \n\n";
cin >> answer;
while (answer != 'y' && answer != 'n' && answer != 'Y' && answer != 'N') {
cout << "Please answer with Y, N or y, n. \n\n"; //just checking that a valid answer is given
cin >> answer;
}
if (answer == 'y' || answer == 'Y') {
CreateR(); //continue adding games/programs if answered with Y/y
count++;
}
else {
cout << "You have removed Fullscreen Optimization from " << count << " programs/games.\n\n"; //stop adding stuff, give a count of programs/games that have been modified
check = false;
}
}
}
}