| 500 | } |
| 501 | |
| 502 | static void cdrom_command_accepted (int size, uae_u8 *cdrom_command_input, int *cdrom_command_cnt_in) |
| 503 | { |
| 504 | #ifdef CDTV_DEBUG_CMD |
| 505 | TCHAR tmp[200]; |
| 506 | int i; |
| 507 | #endif |
| 508 | cdrom_command_size_out = size; |
| 509 | #ifdef CDTV_DEBUG_CMD |
| 510 | tmp[0] = 0; |
| 511 | for (i = 0; i < *cdrom_command_cnt_in; i++) |
| 512 | _stprintf (tmp + i * 3, _T("%02X%c"), cdrom_command_input[i], i < *cdrom_command_cnt_in - 1 ? '.' : ' '); |
| 513 | write_log (_T("CD<-: %s\n"), tmp); |
| 514 | if (size > 0) { |
| 515 | tmp[0] = 0; |
| 516 | for (i = 0; i < size; i++) |
| 517 | _stprintf (tmp + i * 3, _T("%02X%c"), cdrom_command_output[i], i < size - 1 ? '.' : ' '); |
| 518 | write_log (_T("CD->: %s\n"), tmp); |
| 519 | } |
| 520 | #endif |
| 521 | *cdrom_command_cnt_in = 0; |
| 522 | cdrom_command_cnt_out = 0; |
| 523 | cdrom_command_done = 1; |
| 524 | } |
| 525 | |
| 526 | static void cdrom_command_thread (uae_u8 b) |
| 527 | { |
no test coverage detected