Skip to content

Commit 3d6f045

Browse files
committed
use TaskExecution::pressEnterToExit() in PLAViewer
1 parent 48f064b commit 3d6f045

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tools/PLAViewer/PLAViewer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <algorithm>
88

99
#include "common-code/ConsoleUtils.h"
10+
#include "common-code/TaskExecution.h"
1011

1112
namespace fs = std::filesystem;
1213

@@ -64,12 +65,7 @@ int main(int argc, char* argv[]) {
6465
ConsoleUtils::printNewLine();
6566
printf("Output file created at: %s\n", fs::absolute(inputSaveGame.stem().string() + ".txt").c_str());
6667

67-
// Exit message for PLAViewer
68-
ConsoleUtils::printNewLine();
69-
printf("Press Enter to exit PLAViewer.\n");
70-
(void)getchar();
71-
ConsoleUtils::clearConsole();
72-
68+
TaskExecution::pressEnterToExit();
7369
return 0;
7470

7571
} // End of namespace fs

0 commit comments

Comments
 (0)