mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 18:05:06 +01:00
[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:
parent
6caad0d692
commit
540985a068
@ -778,11 +778,11 @@ static void retro_set_viewport_dimensions(void)
|
||||
for (i = 0; i < 10; i++)
|
||||
system_frame_sms(0);
|
||||
|
||||
retro_reset();
|
||||
|
||||
vwidth = bitmap.viewport.w + (bitmap.viewport.x * 2);
|
||||
vheight = bitmap.viewport.h + (bitmap.viewport.y * 2);
|
||||
|
||||
retro_reset();
|
||||
|
||||
#if defined(USE_NTSC)
|
||||
if (config.ntsc)
|
||||
{
|
||||
@ -989,7 +989,7 @@ void retro_deinit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void retro_reset(void) { gen_reset(0); }
|
||||
void retro_reset(void) { system_reset(); }
|
||||
|
||||
int16 soundbuffer[3068];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user