Another big change, this time to the NVR. It has been re-done, integrated with the RTC code, and is now ready to be used by other, non-AT-compatible systems, including an ISA card for PC/XT.

This commit is contained in:
waltje
2017-10-03 16:26:55 -04:00
parent a1b3c33054
commit 633adc6b02
31 changed files with 1027 additions and 911 deletions

View File

@@ -43,7 +43,7 @@ void ati_eeprom_load(ati_eeprom_t *eeprom, wchar_t *fn, int type)
FILE *f;
eeprom->type = type;
wcscpy(eeprom->fn, fn);
f = nvrfopen(eeprom->fn, L"rb");
f = nvr_fopen(eeprom->fn, L"rb");
if (!f)
{
memset(eeprom->data, 0, eeprom->type ? 512 : 128);
@@ -55,7 +55,7 @@ void ati_eeprom_load(ati_eeprom_t *eeprom, wchar_t *fn, int type)
void ati_eeprom_save(ati_eeprom_t *eeprom)
{
FILE *f = nvrfopen(eeprom->fn, L"wb");
FILE *f = nvr_fopen(eeprom->fn, L"wb");
if (!f) return;
fwrite(eeprom->data, 1, eeprom->type ? 512 : 128, f);
fclose(f);

View File

@@ -11,7 +11,7 @@
* This is intended to be used by another SVGA driver,
* and not as a card in it's own right.
*
* Version: @(#)vid_svga.c 1.0.3 2017/09/24
* Version: @(#)vid_svga.c 1.0.4 2017/10/02
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -1939,7 +1939,7 @@ void svga_dump_vram()
return;
}
f = nvrfopen(L"svga_vram.dmp", L"wb");
f = nvr_fopen(L"svga_vram.dmp", L"wb");
if (f == NULL)
{
return;