From 5140c0e6a0bf08f0e3346b25de0c24e2aa09476a Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sun, 13 Feb 2011 21:30:40 +0000 Subject: [PATCH] Fix assert when saving snapshots beyond the first. --- src/emu/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/video.c b/src/emu/video.c index af5a4fbea28..ae5a4e08a60 100644 --- a/src/emu/video.c +++ b/src/emu/video.c @@ -1202,13 +1202,13 @@ file_error video_manager::open_next(emu_file &file, const char *extension) { // try until we succeed astring seqtext; + file.set_openflags(OPEN_FLAG_READ); for (int seq = 0; ; seq++) { // build up the filename fname.cpy(snapstr).replace(0, "%i", seqtext.format("%04d", seq).cstr()); // try to open the file; stop when we fail - file.set_openflags(OPEN_FLAG_READ); file_error filerr = file.open(fname); if (filerr != FILERR_NONE) break;