diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-29 22:45:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-29 22:45:54 +0200 |
| commit | 652a6467fdc4e562fe9166d491f4ca9848e37abb (patch) | |
| tree | 016497e5329c91a200cb39d0f0f38272f7510a6b /src | |
| parent | 40d38c8d011f0863f396f21cd750cdcef803a792 (diff) | |
Add exit command to stress tester.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/player_stress_tester.cc | 5 | ||||
| -rw-r--r-- | src/wx/player_stress_tester.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/player_stress_tester.cc b/src/wx/player_stress_tester.cc index c0e6e8443..726db2a70 100644 --- a/src/wx/player_stress_tester.cc +++ b/src/wx/player_stress_tester.cc @@ -67,6 +67,8 @@ Command::Command (string line) } type = SEEK; int_param = raw_convert<int>(bits[1]); + } else if (bits[0] == "E") { + type = EXIT; } } @@ -156,6 +158,9 @@ PlayerStressTester::check_commands () _controls->seek (_current_command->int_param); ++_current_command; break; + case Command::EXIT: + wxTheApp->GetTopWindow()->Destroy(); + break; } } diff --git a/src/wx/player_stress_tester.h b/src/wx/player_stress_tester.h index 40686bc24..9da73762f 100644 --- a/src/wx/player_stress_tester.h +++ b/src/wx/player_stress_tester.h @@ -35,6 +35,7 @@ public: WAIT, STOP, SEEK, + EXIT }; Command(std::string line); |
