From e6506eaa1e33f7507d961c617e536bb6283bc527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Andr=C3=A9n=20Zachrisson?= Date: Sun, 1 Nov 2015 22:30:17 +0100 Subject: [PATCH] Remove interactive CDRWIN fix. Why wouldn't the user want it? Also it was broken --- cue2pops.c | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/cue2pops.c b/cue2pops.c index c7b5c45..f6aeea4 100644 --- a/cue2pops.c +++ b/cue2pops.c @@ -354,7 +354,6 @@ int main(int argc, char **argv) int index0_count = 0; // Number of "INDEX 00" occurrences in the cue int index1_count = 0; // Number of "INDEX 01" occurrences in the cue int wave_count = 0; // Number of "WAVE" occurrences in the cue - char answer[3]; // Where the user answer is stored. Used in the CDRWIN fix prompt shit unsigned char *headerbuf; // Buffer for the POPS header unsigned char *outbuf; // File I/O cache @@ -688,27 +687,9 @@ int main(int argc, char **argv) } if(pregap_count == 1 && postgap_count == 0) { // Don't offer to fix the dump if more than 1 pregap was found or cue has postgaps - if(batch == 0) { - for(i = pregap_count; i > 0; i--) { - i++; - printf("Warning : The input file seems to be a CDRWIN cue sheet...\n"); - printf(" Would you like to fix the disc image (Yes or No) ? "); - scanf("%s", answer); - if(!strcmp(answer, "Yes") || !strcmp(answer, "yes") || !strcmp(answer, "y") || !strcmp(answer, "Y")) { - fix_CDRWIN = 1; - printf("\n"); - break; - } - if(!strcmp(answer, "No") || !strcmp(answer, "no") || !strcmp(answer, "n") || !strcmp(answer, "N")) { - printf("\n"); - break; - } - } - } else { // Batch mode is ON, so don't prompt the user... - printf("Warning : The input file seems to be a CDRWIN cue sheet\n"); - printf(" A pregap will be inserted in the output file...\n\n"); - fix_CDRWIN = 1; //... And turn the CDRWIN fix on - } + printf("Warning : The input file seems to be a CDRWIN cue sheet\n"); + printf(" A pregap will be inserted in the output file...\n\n"); + fix_CDRWIN = 1; //... And turn the CDRWIN fix on } for(i = 0; i < track_count; i++) {