[libretro] fixed retro_reset function: using soft-reset is not safe as it doesn't reset the whole system (RAM, VDP, etc)

This commit is contained in:
EkeEke 2013-04-01 14:06:28 +02:00
parent 6caad0d692
commit 540985a068

View File

@ -778,11 +778,11 @@ static void retro_set_viewport_dimensions(void)
for (i = 0; i < 10; i++) for (i = 0; i < 10; i++)
system_frame_sms(0); system_frame_sms(0);
retro_reset();
vwidth = bitmap.viewport.w + (bitmap.viewport.x * 2); vwidth = bitmap.viewport.w + (bitmap.viewport.x * 2);
vheight = bitmap.viewport.h + (bitmap.viewport.y * 2); vheight = bitmap.viewport.h + (bitmap.viewport.y * 2);
retro_reset();
#if defined(USE_NTSC) #if defined(USE_NTSC)
if (config.ntsc) if (config.ntsc)
{ {
@ -989,7 +989,7 @@ void retro_deinit(void)
#endif #endif
} }
void retro_reset(void) { gen_reset(0); } void retro_reset(void) { system_reset(); }
int16 soundbuffer[3068]; int16 soundbuffer[3068];