rewrite the emulator to use UTF-8 internally

This commit is contained in:
David Hrdlička
2021-03-14 20:35:01 +01:00
parent 56d62de4fe
commit dfbbe08a07
146 changed files with 1507 additions and 1457 deletions

View File

@@ -320,7 +320,7 @@ fdi_seek(int drive, int track)
void
fdi_load(int drive, wchar_t *fn)
fdi_load(int drive, char *fn)
{
char header[26];
fdi_t *dev;
@@ -339,7 +339,7 @@ fdi_load(int drive, wchar_t *fn)
d86f_unregister(drive);
dev->f = plat_fopen(fn, L"rb");
dev->f = plat_fopen(fn, "rb");
if (fread(header, 1, 25, dev->f) != 25)
fatal("fdi_load(): Error reading header\n");
if (fseek(dev->f, 0, SEEK_SET) == -1)