IBM1130: Clarify prompts to handle incorrect file drops into GUI

This commit is contained in:
Mark Pizzolato 2017-05-18 13:14:56 -07:00
parent a7216dbbd1
commit b0850673ce

View file

@ -1522,16 +1522,17 @@ static void accept_dropped_file (HANDLE hDrop)
scp_file = is_scp_file(fname); scp_file = is_scp_file(fname);
if (cardreader) { if (cardreader) {
if (scp_file) { if (scp_file) {
snprintf(msg, sizeof(msg)-1, "Process \"%s\" as SCP commands?", fname); snprintf(msg, sizeof(msg)-1, "\"%s\"\r\n\r\nContains SCP commands (not card reader input).\r\n\r\nProcess as SCP commands?", fname);
if (IDCANCEL == MessageBox(hConsoleWnd, msg, "", MB_OKCANCEL)) if (IDYES != MessageBox(hConsoleWnd, msg, "", MB_YESNO))
return; return;
cardreader = FALSE; /* Process as SCP commands */ cardreader = FALSE; /* Process as SCP commands */
} }
} else { } else {
if (!scp_file) { if (!scp_file) {
snprintf(msg, sizeof(msg)-1, "Ignoring Invalid SCP command file \"%s\"", fname); snprintf(msg, sizeof(msg)-1, "Invalid SCP command file:\r\n\r\n\"%s\"\r\n\r\nProcess as Card Reader Input?", fname);
MessageBox(hConsoleWnd, msg, "", MB_OK); if (IDYES != MessageBox(hConsoleWnd, msg, "", MB_YESNO))
return; return;
cardreader = TRUE; /* Process as Card Input */
} }
} }
/* if shift key is down, prepend @ to name (make it a deck file) */ /* if shift key is down, prepend @ to name (make it a deck file) */