Exemplo n.º 1
0
void uiattach_command(HWND hwnd, WPARAM wparam)
{
    switch (wparam & 0xffff) {
    case IDM_ATTACH_8:
    case IDM_ATTACH_9:
    case IDM_ATTACH_10:
    case IDM_ATTACH_11:
        uiattach_disk_dialog(hwnd, wparam);
        break;
    case IDM_DETACH_8:
        file_system_detach_disk(8);
        break;
    case IDM_DETACH_9:
        file_system_detach_disk(9);
        break;
    case IDM_DETACH_10:
        file_system_detach_disk(10);
        break;
    case IDM_DETACH_11:
        file_system_detach_disk(11);
        break;
    case IDM_DETACH_ALL:
        file_system_detach_disk(8);
        file_system_detach_disk(9);
        file_system_detach_disk(10);
        file_system_detach_disk(11);
        break;
    case IDM_ATTACH_TAPE:
        uiattach_tape_dialog(hwnd);
        break;
    case IDM_DETACH_TAPE:
        tape_image_detach(1);
        break;
    case IDM_AUTOSTART:
        uiattach_autostart_dialog(hwnd);
        break;
    }
}
Exemplo n.º 2
0
void uiattach_command(video_canvas_t *canvas, int idm)
{
    switch (idm) {
        case IDM_ATTACH_8:
        case IDM_ATTACH_9:
        case IDM_ATTACH_10:
        case IDM_ATTACH_11:
            uiattach_disk_dialog(canvas, idm);
            break;
        case IDM_DETACH_8:
            file_system_detach_disk(8);
            break;
        case IDM_DETACH_9:
            file_system_detach_disk(9);
            break;
        case IDM_DETACH_10:
            file_system_detach_disk(10);
            break;
        case IDM_DETACH_11:
            file_system_detach_disk(11);
            break;
        case IDM_DETACH_ALL:
            file_system_detach_disk(8);
            file_system_detach_disk(9);
            file_system_detach_disk(10);
            file_system_detach_disk(11);
            break;
        case IDM_ATTACH_TAPE:
            uiattach_tape_dialog(canvas);
            break;
        case IDM_DETACH_TAPE:
            tape_image_detach(1);
            break;
        case IDM_AUTOSTART:
            uiattach_autostart_dialog(canvas);
            break;
    }
}