winport: dont crash if hitting ctrl+r when no rom is loaded

This commit is contained in:
zeromus 2020-03-05 23:44:27 -05:00
parent bca921ddae
commit d787b737e3
1 changed files with 4 additions and 0 deletions

View File

@ -2562,6 +2562,10 @@ bool NDS_FakeBoot()
bool _HACK_DONT_STOPMOVIE = false;
void NDS_Reset()
{
//do nothing if nothing is loaded
if(lastRom.filename.size()==0)
return;
UnloadMovieEmulationSettings();
//reload last paths if needed