Added a null check for GameInfo to FCEUMOV_CreateCleanMovie function to prevent crash if ROM is not loaded.
This commit is contained in:
parent
ff44284dfc
commit
9cea7f1551
|
@ -932,7 +932,10 @@ void FCEUMOV_CreateCleanMovie()
|
|||
currMovieData = MovieData();
|
||||
currMovieData.palFlag = FCEUI_GetCurrentVidSystem(0,0)!=0;
|
||||
currMovieData.romFilename = FileBase;
|
||||
currMovieData.romChecksum = GameInfo->MD5;
|
||||
if ( GameInfo )
|
||||
{
|
||||
currMovieData.romChecksum = GameInfo->MD5;
|
||||
}
|
||||
currMovieData.guid.newGuid();
|
||||
currMovieData.fourscore = FCEUI_GetInputFourscore();
|
||||
currMovieData.microphone = FCEUI_GetInputMicrophone();
|
||||
|
|
Loading…
Reference in New Issue