This commit is contained in:
Melissa Goad
2017-09-25 12:21:50 -05:00
parent a05d17fc9c
commit 598ca24f9e

View File

@@ -3456,97 +3456,6 @@ device_t rivatnt_device =
}
};
device_t rivatnt2_device =
{
"nVidia RIVA TNT2",
0,
rivatnt2_init,
rivatnt2_close,
rivatnt2_available,
rivatnt2_speed_changed,
rivatnt2_force_redraw,
rivatnt2_add_status_info,
rivatnt2_config
};
void rivatnt2_close(void *p)
{
riva128_t *riva128 = (riva128_t *)p;
FILE *f = fopen("vram.dmp", "wb");
fwrite(riva128->svga.vram, 4 << 20, 1, f);
fclose(f);
svga_close(&riva128->svga);
free(riva128);
}
int rivatnt2_available()
{
return rom_present(L"roms/video/nv_riva128/NV5diamond.bin") || rom_present(L"roms/video/nv_riva128/inno3d64bit.BIN") || rom_present(L"roms/video/nv_riva128/creative.BIN");
}
void rivatnt2_speed_changed(void *p)
{
riva128_t *riva128 = (riva128_t *)p;
svga_recalctimings(&riva128->svga);
}
void rivatnt2_force_redraw(void *p)
{
riva128_t *riva128 = (riva128_t *)p;
riva128->svga.fullchange = changeframecount;
}
void rivatnt2_add_status_info(char *s, int max_len, void *p)
{
riva128_t *riva128 = (riva128_t *)p;
svga_add_status_info(s, max_len, &riva128->svga);
}
device_config_t rivatnt2_config[] =
{
{
"model", "Card model", CONFIG_SELECTION, "", 0,
{
{
"Vanilla TNT2", 0,
},
{
"TNT2 Pro", 1,
},
{
"TNT2 Ultra", 2,
},
},
},
{
"memory", "Memory size", CONFIG_SELECTION, "", 32,
{
{
"4 MB", 4
},
{
"8 MB", 8
},
{
"16 MB", 16
},
{
"32 MB", 32
},
{
""
}
},
},
{
"", "", -1
}
};
device_t rivatnt2_device =
{
"nVidia RIVA TNT2",