Beispiel #1
0
static int set_drive_rama(int val, void *param)
{
    drive_t *drive = drive_context[(unsigned int)param]->drive;;

    drive->drive_rama_enabled = val;
    set_drive_ram((unsigned int)param);
    return 0;
}
Beispiel #2
0
static int set_drive_rama(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    drive->drive_rama_enabled = val;
    set_drive_ram(vice_ptr_to_uint(param));
    return 0;
}
Beispiel #3
0
static int set_drive_profdos(int val, void *param)
{
    drive_t *drive = drive_context[(unsigned int)param]->drive;;

    drive->profdos = val;
    set_drive_ram((unsigned int)param);

    return 0;
}
Beispiel #4
0
static int set_drive_supercard(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    drive->supercard = val;
    set_drive_ram(vice_ptr_to_uint(param));

    return 0;
}
Beispiel #5
0
static int set_drive_profdos(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    drive->profdos = val;
    set_drive_ram(vice_ptr_to_uint(param));

    return 0;
}
static int set_drive_parallel_cable(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    if (val != DRIVE_PC_NONE && val != DRIVE_PC_STANDARD)
        return -1;

    drive->parallel_cable = val;
    set_drive_ram(vice_ptr_to_uint(param));

    return 0;
}
Beispiel #7
0
static int set_drive_parallel_cable(int val, void *param)
{
    drive_t *drive = drive_context[(unsigned int)param]->drive;

    if (val != DRIVE_PC_NONE && val != DRIVE_PC_STANDARD
        && val != DRIVE_PC_DD3)
        return -1;

    drive->parallel_cable = val;
    set_drive_ram((unsigned int)param);

    return 0;
}
Beispiel #8
0
static int set_drive_parallel_cable(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    if (val >= DRIVE_PC_NUM) {
        return -1;
    }

    drive->parallel_cable = val;
    set_drive_ram(vice_ptr_to_uint(param));

    return 0;
}
static int set_drive_parallel_cable(int val, void *param)
{
    drive_t *drive = drive_context[vice_ptr_to_uint(param)]->drive;

    switch (val) {
        case DRIVE_PC_NONE:
        case DRIVE_PC_STANDARD:
        case DRIVE_PC_DD3:
        case DRIVE_PC_FORMEL64:
            break;
        default:
            return -1;
    }

    drive->parallel_cable = val;
    set_drive_ram(vice_ptr_to_uint(param));

    return 0;
}