trunk/src/emu/emuopts.c
r244968 | r244969 | |
68 | 68 | { OPTION_SNAPBILINEAR, "1", OPTION_BOOLEAN, "specify if the snapshot/movie should have bilinear filtering applied" }, |
69 | 69 | { OPTION_STATENAME, "%g", OPTION_STRING, "override of the default state subfolder naming; %g == gamename" }, |
70 | 70 | { OPTION_BURNIN, "0", OPTION_BOOLEAN, "create burn-in snapshots for each screen" }, |
| 71 | { OPTION_DUMMYWRITE, "0", OPTION_BOOLEAN, "indicates if a snapshot should be created if each frame" }, |
71 | 72 | |
72 | 73 | // performance options |
73 | 74 | { NULL, NULL, OPTION_HEADER, "CORE PERFORMANCE OPTIONS" }, |
trunk/src/emu/emuopts.h
r244968 | r244969 | |
73 | 73 | #define OPTION_RECORD "record" |
74 | 74 | #define OPTION_MNGWRITE "mngwrite" |
75 | 75 | #define OPTION_AVIWRITE "aviwrite" |
| 76 | #define OPTION_DUMMYWRITE "dummywrite" |
76 | 77 | #define OPTION_WAVWRITE "wavwrite" |
77 | 78 | #define OPTION_SNAPNAME "snapname" |
78 | 79 | #define OPTION_SNAPSIZE "snapsize" |
r244968 | r244969 | |
241 | 242 | const char *record() const { return value(OPTION_RECORD); } |
242 | 243 | const char *mng_write() const { return value(OPTION_MNGWRITE); } |
243 | 244 | const char *avi_write() const { return value(OPTION_AVIWRITE); } |
| 245 | const char *dummy_write() const { return value(OPTION_DUMMYWRITE); } |
244 | 246 | const char *wav_write() const { return value(OPTION_WAVWRITE); } |
245 | 247 | const char *snap_name() const { return value(OPTION_SNAPNAME); } |
246 | 248 | const char *snap_size() const { return value(OPTION_SNAPSIZE); } |
trunk/src/emu/video.c
r244968 | r244969 | |
152 | 152 | filename = machine.options().avi_write(); |
153 | 153 | if (filename[0] != 0) |
154 | 154 | begin_recording(filename, MF_AVI); |
| 155 | |
| 156 | m_dummy_recording = machine.options().dummy_write(); |
155 | 157 | |
156 | 158 | // if no screens, create a periodic timer to drive updates |
157 | 159 | if (machine.first_screen() == NULL) |
r244968 | r244969 | |
1232 | 1234 | void video_manager::record_frame() |
1233 | 1235 | { |
1234 | 1236 | // ignore if nothing to do |
1235 | | if (m_mng_file == NULL && m_avi_file == NULL) |
| 1237 | if (m_mng_file == NULL && m_avi_file == NULL && !m_dummy_recording) |
1236 | 1238 | return; |
1237 | 1239 | |
1238 | 1240 | // start the profiler and get the current time |