rewrite the emulator to use UTF-8 internally
This commit is contained in:
@@ -601,7 +601,7 @@ imd_init(void)
|
||||
|
||||
|
||||
void
|
||||
imd_load(int drive, wchar_t *fn)
|
||||
imd_load(int drive, char *fn)
|
||||
{
|
||||
uint32_t magic = 0;
|
||||
uint32_t fsize = 0;
|
||||
@@ -634,9 +634,9 @@ imd_load(int drive, wchar_t *fn)
|
||||
dev = (imd_t *)malloc(sizeof(imd_t));
|
||||
memset(dev, 0x00, sizeof(imd_t));
|
||||
|
||||
dev->f = plat_fopen(fn, L"rb+");
|
||||
dev->f = plat_fopen(fn, "rb+");
|
||||
if (dev->f == NULL) {
|
||||
dev->f = plat_fopen(fn, L"rb");
|
||||
dev->f = plat_fopen(fn, "rb");
|
||||
if (dev->f == NULL) {
|
||||
memset(floppyfns[drive], 0, sizeof(floppyfns[drive]));
|
||||
free(dev);
|
||||
|
||||
Reference in New Issue
Block a user