mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
emu/video.cpp: Set file names via -snapname when exiting in -seconds_… (#8633)
This commit is contained in:
parent
360d3a5950
commit
4395d59216
2 changed files with 3 additions and 3 deletions
|
@ -1764,8 +1764,8 @@ Core Performance Options
|
|||
benchmarking and automated testing. By combining this with a fixed set of
|
||||
other command line options, you can set up a consistent environment for
|
||||
benchmarking MAME's emulation performance. In addition, upon exit, the
|
||||
**-str** option will write a screenshot called ``final.png`` to the system's
|
||||
snapshot directory.
|
||||
**-str** option will write a screenshot to the system's snapshot directory
|
||||
with the file name determined by the **-snapname** option.
|
||||
|
||||
Example:
|
||||
.. code-block:: bash
|
||||
|
|
|
@ -1007,7 +1007,7 @@ void video_manager::recompute_speed(const attotime &emutime)
|
|||
{
|
||||
// create a final screenshot
|
||||
emu_file file(machine().options().snapshot_directory(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
|
||||
std::error_condition filerr = file.open(machine().basename() + PATH_SEPARATOR "final.png");
|
||||
std::error_condition const filerr = open_next(file, "png");
|
||||
if (!filerr)
|
||||
save_snapshot(nullptr, file);
|
||||
|
||||
|
|
Loading…
Reference in a new issue