// SPDX-License-Identifier: GPL-3.0-or-later #include #include "mission.h" int main(void) { byte key, sector, result; cls(1); printf("MISSION RECORDER\n\n1 SILENT 2 SPEECH\n3 STEREO 4 BOTH\nQ QUIT\nSELECT AUDIO\n"); do { key = waitkey(0); if (key == 'Q' || key == 'q') return 0; } while (key < '1' || key > '4'); result = fly(key - '1', §or); if (result == DISCARDED) printf("FLIGHT DISCARDED\n"); if (result == FLIGHT_ERROR) return 1; if (result == RECORDED) return saveReport(sector); return 0; }