|
|
|
@ -11,16 +11,12 @@ |
|
|
|
|
|
|
|
|
|
const QString DEMO_ROUTE = "4cf7a6ad03080c90|2021-09-29--13-46-36"; |
|
|
|
|
struct termios oldt = {}; |
|
|
|
|
Replay *replay = nullptr; |
|
|
|
|
|
|
|
|
|
void sigHandler(int s) { |
|
|
|
|
std::signal(s, SIG_DFL); |
|
|
|
|
if (oldt.c_lflag) { |
|
|
|
|
tcsetattr(STDIN_FILENO, TCSANOW, &oldt); |
|
|
|
|
} |
|
|
|
|
if (replay) { |
|
|
|
|
replay->stop(); |
|
|
|
|
} |
|
|
|
|
qApp->quit(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -134,7 +130,7 @@ int main(int argc, char *argv[]) { |
|
|
|
|
replay_flags |= flag; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
replay = new Replay(route, allow, block, nullptr, replay_flags, parser.value("data_dir"), &app); |
|
|
|
|
Replay *replay = new Replay(route, allow, block, nullptr, replay_flags, parser.value("data_dir"), &app); |
|
|
|
|
if (!replay->load()) { |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|