diff options
Diffstat (limited to 'src/emu/imagedev/harddriv.c')
-rw-r--r-- | src/emu/imagedev/harddriv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/imagedev/harddriv.c b/src/emu/imagedev/harddriv.c index 6960662dc64..780317e9193 100644 --- a/src/emu/imagedev/harddriv.c +++ b/src/emu/imagedev/harddriv.c @@ -181,20 +181,20 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file /* try to open the diff */ //printf("Opening differencing image file: %s\n", fname.c_str()); emu_file diff_file(options.diff_directory(), OPEN_FLAG_READ | OPEN_FLAG_WRITE); - file_error filerr = diff_file.open(fname); + file_error filerr = diff_file.open(fname.c_str()); if (filerr == FILERR_NONE) { astring fullpath(diff_file.fullpath()); diff_file.close(); //printf("Opening differencing image file: %s\n", fullpath.c_str()); - return diff_chd.open(fullpath, true, &source); + return diff_chd.open(fullpath.c_str(), true, &source); } /* didn't work; try creating it instead */ //printf("Creating differencing image: %s\n", fname.c_str()); diff_file.set_openflags(OPEN_FLAG_READ | OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); - filerr = diff_file.open(fname); + filerr = diff_file.open(fname.c_str()); if (filerr == FILERR_NONE) { astring fullpath(diff_file.fullpath()); @@ -203,7 +203,7 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file /* create the CHD */ //printf("Creating differencing image file: %s\n", fullpath.c_str()); chd_codec_type compression[4] = { CHD_CODEC_NONE }; - chd_error err = diff_chd.create(fullpath, source.logical_bytes(), source.hunk_bytes(), compression, source); + chd_error err = diff_chd.create(fullpath.c_str(), source.logical_bytes(), source.hunk_bytes(), compression, source); if (err != CHDERR_NONE) return err; @@ -226,7 +226,7 @@ int harddisk_image_device::internal_load_hd() /* open the CHD file */ if (software_entry() != NULL) { - m_chd = get_disk_handle(device().machine(), device().subtag(tempstring,"harddriv")); + m_chd = get_disk_handle(device().machine(), device().subtag(tempstring, "harddriv").c_str()); } else { |