Fixed a bug in image_open() that was causing CD-ROM image paths to get reduced to one character on init;
Also made the code that prints floppy image file on load use %ls.
This commit is contained in:
@@ -991,7 +991,7 @@ int image_open(uint8_t id, wchar_t *fn)
|
||||
|
||||
if (!cdrom_image[id].image_inited || cdrom_image[id].image_changed)
|
||||
{
|
||||
swprintf(cdrom_image[id].image_path, sizeof(cdrom_image[id].image_path)/sizeof(wchar_t), L"%S", fn);
|
||||
swprintf(cdrom_image[id].image_path, sizeof(cdrom_image[id].image_path)/sizeof(wchar_t), L"%ls", fn);
|
||||
}
|
||||
|
||||
if (! wcscasecmp(get_extension_w(fn), L"ISO"))
|
||||
|
@@ -156,7 +156,7 @@ void floppy_load(int drive, wchar_t *fn)
|
||||
}
|
||||
c++;
|
||||
}
|
||||
pclog("Couldn't load %S %s\n",fn,p);
|
||||
pclog("Couldn't load %ls %s\n",fn,p);
|
||||
drive_empty[drive] = 1;
|
||||
fdd_set_head(real_drive(drive), 0);
|
||||
memset(floppyfns[drive], 0, sizeof(floppyfns[drive]));
|
||||
|
Reference in New Issue
Block a user