summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/imagedev/harddriv.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-22 11:30:19 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-22 11:30:45 +0200
commit54f8b3ae5df6736c58b2a8398f9ac85da425c96d (patch)
tree5924033acf314625b14317b674adc9e9730c97cc /src/emu/imagedev/harddriv.c
parent946958136d85f2a1485dfb962487cba43ac6c048 (diff)
moved all to std::string (nw)
Diffstat (limited to 'src/emu/imagedev/harddriv.c')
-rw-r--r--src/emu/imagedev/harddriv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/imagedev/harddriv.c b/src/emu/imagedev/harddriv.c
index 48fa65500df..8520756fe22 100644
--- a/src/emu/imagedev/harddriv.c
+++ b/src/emu/imagedev/harddriv.c
@@ -135,7 +135,7 @@ bool harddisk_image_device::call_create(int create_format, option_resolution *cr
int err;
UINT32 sectorsize, hunksize;
UINT32 cylinders, heads, sectors, totalsectors;
- astring metadata;
+ std::string metadata;
cylinders = option_resolution_lookup_int(create_args, 'C');
heads = option_resolution_lookup_int(create_args, 'H');
@@ -152,7 +152,7 @@ bool harddisk_image_device::call_create(int create_format, option_resolution *cr
goto error;
/* if we created the image and hence, have metadata to set, set the metadata */
- metadata.format(HARD_DISK_METADATA_FORMAT, cylinders, heads, sectors, sectorsize);
+ strprintf(metadata, HARD_DISK_METADATA_FORMAT, cylinders, heads, sectors, sectorsize);
err = m_origchd.write_metadata(HARD_DISK_METADATA_TAG, 0, metadata);
m_origchd.close();
@@ -190,7 +190,7 @@ void harddisk_image_device::call_unload()
static chd_error open_disk_diff(emu_options &options, const char *name, chd_file &source, chd_file &diff_chd)
{
- astring fname = astring(name).cat(".dif");
+ std::string fname = std::string(name).append(".dif");
/* try to open the diff */
//printf("Opening differencing image file: %s\n", fname.c_str());
@@ -198,7 +198,7 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file
file_error filerr = diff_file.open(fname.c_str());
if (filerr == FILERR_NONE)
{
- astring fullpath(diff_file.fullpath());
+ std::string fullpath(diff_file.fullpath());
diff_file.close();
//printf("Opening differencing image file: %s\n", fullpath.c_str());
@@ -211,11 +211,11 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file
filerr = diff_file.open(fname.c_str());
if (filerr == FILERR_NONE)
{
- astring fullpath(diff_file.fullpath());
+ std::string fullpath(diff_file.fullpath());
diff_file.close();
/* create the CHD */
- //printf("Creating differencing image file: %s\n", fullpath.c_str());
+ //printf("Creating differencing image file: %s\n", fupointllpath.c_str());
chd_codec_type compression[4] = { CHD_CODEC_NONE };
chd_error err = diff_chd.create(fullpath.c_str(), source.logical_bytes(), source.hunk_bytes(), compression, source);
if (err != CHDERR_NONE)