enjoy the same speedups in the replay dialog
This commit is contained in:
parent
bccf3f2f85
commit
d607cee1c4
|
@ -123,6 +123,7 @@ void UpdateReplayCommentsSubs(const char * fname) {
|
||||||
MOVIE_INFO info;
|
MOVIE_INFO info;
|
||||||
|
|
||||||
FCEUFILE *fp = FCEU_fopen(fname,0,"rb",0);
|
FCEUFILE *fp = FCEU_fopen(fname,0,"rb",0);
|
||||||
|
fp->stream = EMUFILE::memwrap(fp->stream);
|
||||||
bool scanok = FCEUI_MovieGetInfo(fp, info, true);
|
bool scanok = FCEUI_MovieGetInfo(fp, info, true);
|
||||||
delete fp;
|
delete fp;
|
||||||
|
|
||||||
|
@ -148,6 +149,7 @@ void UpdateReplayDialog(HWND hwndDlg)
|
||||||
MOVIE_INFO info;
|
MOVIE_INFO info;
|
||||||
|
|
||||||
FCEUFILE* fp = FCEU_fopen(fn,0,"rb",0);
|
FCEUFILE* fp = FCEU_fopen(fn,0,"rb",0);
|
||||||
|
fp->stream = EMUFILE::memwrap(fp->stream);
|
||||||
bool isarchive = FCEU_isFileInArchive(fn);
|
bool isarchive = FCEU_isFileInArchive(fn);
|
||||||
bool ismovie = FCEUI_MovieGetInfo(fp, info, false);
|
bool ismovie = FCEUI_MovieGetInfo(fp, info, false);
|
||||||
delete fp;
|
delete fp;
|
||||||
|
@ -583,6 +585,7 @@ BOOL CALLBACK ReplayDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP
|
||||||
ArchiveScanRecord asr = FCEUD_ScanArchive(filename);
|
ArchiveScanRecord asr = FCEUD_ScanArchive(filename);
|
||||||
if(!asr.isArchive()) {
|
if(!asr.isArchive()) {
|
||||||
FCEUFILE* fp = FCEU_fopen(filename,0,"rb",0);
|
FCEUFILE* fp = FCEU_fopen(filename,0,"rb",0);
|
||||||
|
fp->stream = EMUFILE::memwrap(fp->stream);
|
||||||
if(fp) {
|
if(fp) {
|
||||||
HandleScan(hwndDlg,fp ,items);
|
HandleScan(hwndDlg,fp ,items);
|
||||||
delete fp;
|
delete fp;
|
||||||
|
|
Loading…
Reference in New Issue