summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video.cpp
diff options
context:
space:
mode:
author Michele Fochi <michele.fochi@gmail.com>2016-02-08 13:25:25 +0100
committer Michele Fochi <michele.fochi@gmail.com>2016-02-08 13:25:25 +0100
commitf736cd5abcea21c8b2c8c4f2d2909952856ac22d (patch)
tree0f5534e9cdc09f97fd5d0445cd679f5be09d24b6 /src/emu/video.cpp
parent34bc216ef9b17e6464910fc678119a4c3670356d (diff)
Added new options:
-[no]exit_after_playback (default=no) -[no]record_input (default=no) Added new UI shortcut to save current timecode (default F12) Translated variable names and comments to english language
Diffstat (limited to 'src/emu/video.cpp')
-rw-r--r--src/emu/video.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index 4b2a315d75c..11f081636b8 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -341,13 +341,6 @@ void video_manager::save_snapshot(screen_device *screen, emu_file &file)
void video_manager::save_active_screen_snapshots()
{
- // If record inp is acrive, no snapshot will be created
- if (m_timecode_enabled) {
- // This flag will write the line on file inp.timecode (see function ioport_manager::record_frame)
- m_timecode_write = true;
- return;
- }
-
// if we're native, then write one snapshot per visible screen
if (m_snap_native)
{
@@ -373,6 +366,21 @@ void video_manager::save_active_screen_snapshots()
}
}
+
+//-------------------------------------------------
+// save_input_timecode - add a line of current
+// timestamp to inp.timecode file
+//-------------------------------------------------
+
+void video_manager::save_input_timecode()
+{
+ // if record timecode input is not active, do nothing
+ if (!m_timecode_enabled) {
+ return;
+ }
+ m_timecode_write = true;
+}
+
std::string &video_manager::timecode_text(std::string &str) {
str.clear();
str += " ";