diff options
author | 2020-03-10 18:21:10 +1100 | |
---|---|---|
committer | 2020-03-10 18:21:10 +1100 | |
commit | 9c600695f0ed4456270bf5f1676b8fadaed34127 (patch) | |
tree | 1e52fb8b786e9bece80b05e2f583bba207f5af7c /src/emu/screen.cpp | |
parent | cc70fe02bacdf8dc17fe75065e387276c8056e5e (diff) |
(nw) Cleanup on the way:
* Add doxygen comments for bit manipulation functions
* Add an overload of BIT that works like the AArch64 UBFX instruction
* Kill off some of the silly concatenating overloads for emu_file::open
* Make searchpath acually useful for devices
This is a checkpoint - I'm planning to improve ROM loading behaviour at
least a little.
Diffstat (limited to 'src/emu/screen.cpp')
-rw-r--r-- | src/emu/screen.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp index 67b9006988d..22a55bdb531 100644 --- a/src/emu/screen.cpp +++ b/src/emu/screen.cpp @@ -1914,17 +1914,14 @@ void screen_device::finalize_burnin() // compute the name and create the file emu_file file(machine().options().snapshot_directory(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); - osd_file::error filerr = file.open(machine().basename(), PATH_SEPARATOR "burnin-", this->tag()+1, ".png") ; + osd_file::error filerr = file.open(util::string_format("%s" PATH_SEPARATOR "burnin-%s.png", machine().basename(), tag() + 1)); if (filerr == osd_file::error::NONE) { png_info pnginfo; - char text[256]; // add two text entries describing the image - sprintf(text,"%s %s", emulator_info::get_appname(), emulator_info::get_build_version()); - pnginfo.add_text("Software", text); - sprintf(text, "%s %s", machine().system().manufacturer, machine().system().type.fullname()); - pnginfo.add_text("System", text); + pnginfo.add_text("Software", util::string_format("%s %s", emulator_info::get_appname(), emulator_info::get_build_version()).c_str()); + pnginfo.add_text("System", util::string_format("%s %s", machine().system().manufacturer, machine().system().type.fullname()).c_str()); // now do the actual work png_write_bitmap(file, &pnginfo, finalmap, 0, nullptr); |