File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ workspace "MTADiag"
21
21
22
22
project " MTADiag"
23
23
language " C++"
24
- cppdialect " C++14 "
24
+ cppdialect " C++17 "
25
25
kind " ConsoleApp"
26
+ buildoptions { " /std:c++latest" }
26
27
27
28
defines { " BUILDING_LIBCURL" }
28
29
includedirs { " include" , " vendor/curl/include" }
Original file line number Diff line number Diff line change @@ -26,8 +26,15 @@ int main()
26
26
// Run servicing auto-fix script
27
27
try
28
28
{
29
- ServicingScript ss;
30
- ss.Run ();
29
+ std::cout << " Do you want MTADiag to auto-fix your installation? By entering 'y' you allow us to make system changes." << std::endl;
30
+ std::string answer;
31
+ if (auto c = std::getchar (); c == ' y' || c == ' Y' )
32
+ {
33
+ std::cout << " Alright! Starting now..." << std::endl;
34
+
35
+ ServicingScript ss;
36
+ ss.Run ();
37
+ }
31
38
}
32
39
catch (std::runtime_error& ex)
33
40
{
You can’t perform that action at this time.
0 commit comments