From d607cee1c4b9aab176bfe946314b998facf7570c Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 28 May 2010 04:04:47 +0000 Subject: [PATCH] enjoy the same speedups in the replay dialog --- src/drivers/win/replay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/win/replay.cpp b/src/drivers/win/replay.cpp index 88110ed5..76e2e26c 100644 --- a/src/drivers/win/replay.cpp +++ b/src/drivers/win/replay.cpp @@ -123,6 +123,7 @@ void UpdateReplayCommentsSubs(const char * fname) { MOVIE_INFO info; FCEUFILE *fp = FCEU_fopen(fname,0,"rb",0); + fp->stream = EMUFILE::memwrap(fp->stream); bool scanok = FCEUI_MovieGetInfo(fp, info, true); delete fp; @@ -148,6 +149,7 @@ void UpdateReplayDialog(HWND hwndDlg) MOVIE_INFO info; FCEUFILE* fp = FCEU_fopen(fn,0,"rb",0); + fp->stream = EMUFILE::memwrap(fp->stream); bool isarchive = FCEU_isFileInArchive(fn); bool ismovie = FCEUI_MovieGetInfo(fp, info, false); delete fp; @@ -583,6 +585,7 @@ BOOL CALLBACK ReplayDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP ArchiveScanRecord asr = FCEUD_ScanArchive(filename); if(!asr.isArchive()) { FCEUFILE* fp = FCEU_fopen(filename,0,"rb",0); + fp->stream = EMUFILE::memwrap(fp->stream); if(fp) { HandleScan(hwndDlg,fp ,items); delete fp;