winport: dont crash if hitting ctrl+r when no rom is loaded
This commit is contained in:
parent
bca921ddae
commit
d787b737e3
|
@ -2562,6 +2562,10 @@ bool NDS_FakeBoot()
|
||||||
bool _HACK_DONT_STOPMOVIE = false;
|
bool _HACK_DONT_STOPMOVIE = false;
|
||||||
void NDS_Reset()
|
void NDS_Reset()
|
||||||
{
|
{
|
||||||
|
//do nothing if nothing is loaded
|
||||||
|
if(lastRom.filename.size()==0)
|
||||||
|
return;
|
||||||
|
|
||||||
UnloadMovieEmulationSettings();
|
UnloadMovieEmulationSettings();
|
||||||
|
|
||||||
//reload last paths if needed
|
//reload last paths if needed
|
||||||
|
|
Loading…
Reference in New Issue