Added a null check for GameInfo to FCEUMOV_CreateCleanMovie function to prevent crash if ROM is not loaded.

This commit is contained in:
mjbudd77 2021-11-10 22:11:49 -05:00
parent ff44284dfc
commit 9cea7f1551
1 changed files with 4 additions and 1 deletions

View File

@ -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();