summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/imagedev/diablo.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-11 15:26:58 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-11 15:26:58 +0200
commit6b36c7ab225c4619dcb5ac33c34813a66277457e (patch)
tree51fe970d770cd4ad794b6aa428560f020f0f0fd6 /src/emu/imagedev/diablo.c
parentc334fda9a9da652bcac871f3b778ba4ca967031c (diff)
cstr() - > c_str() as preparation for move to std::string (nw)
Diffstat (limited to 'src/emu/imagedev/diablo.c')
-rw-r--r--src/emu/imagedev/diablo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/imagedev/diablo.c b/src/emu/imagedev/diablo.c
index 4fefea270c4..49d68cc62d6 100644
--- a/src/emu/imagedev/diablo.c
+++ b/src/emu/imagedev/diablo.c
@@ -173,7 +173,7 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file
astring fname(name, ".dif");
/* try to open the diff */
- //printf("Opening differencing image file: %s\n", fname.cstr());
+ //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);
if (filerr == FILERR_NONE)
@@ -181,12 +181,12 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file
astring fullpath(diff_file.fullpath());
diff_file.close();
- //printf("Opening differencing image file: %s\n", fullpath.cstr());
+ //printf("Opening differencing image file: %s\n", fullpath.c_str());
return diff_chd.open(fullpath, true, &source);
}
/* didn't work; try creating it instead */
- //printf("Creating differencing image: %s\n", fname.cstr());
+ //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);
if (filerr == FILERR_NONE)
@@ -195,7 +195,7 @@ static chd_error open_disk_diff(emu_options &options, const char *name, chd_file
diff_file.close();
/* create the CHD */
- //printf("Creating differencing image file: %s\n", fullpath.cstr());
+ //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);
if (err != CHDERR_NONE)