Skip to content

Commit 3932118

Browse files
committed
Move servicing script to the end of the diag process
1 parent f4f3e6e commit 3932118

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ int main()
2121
SetConsoleTitleA ( "MTADiag v" VERSION ); // set the console title
2222
std::cout << "MTADiag v" << VERSION << " by Towncivilian" << std::endl << std::endl; // tell the user what this program is
2323

24+
Diag::Begin(); // begin diagnostics
25+
26+
Diag::Cleanup(); // remove temporary files
27+
2428
// Run servicing auto-fix script
2529
try
2630
{
@@ -40,10 +44,6 @@ int main()
4044
std::cout << "Continuing..." << std::endl;
4145
}
4246

43-
Diag::Begin(); // begin diagnostics
44-
45-
Diag::Cleanup(); // remove temporary files
46-
4747
system ( "pause" ); // wait for user exit
4848

4949
remove ( Diag::files[FILE_LOG].c_str() ); // remove the generated MTADiag log

0 commit comments

Comments
 (0)