libretro / beetle-pce-fast-libretro

Standalone fork of Mednafen PCE Fast to libretro
GNU General Public License v2.0
29 stars 52 forks source link

Enusure globals are intialised correctly #184

Closed jdgleaver closed 3 years ago

jdgleaver commented 3 years ago

This PR properly initialises a number of global variables inside retro_init(). At present, these are 'left floating' when the core is unloaded on dynamic platforms, leading to undefined behaviour - the most obvious example of this is that the video dimensions/aspect ratio can be set incorrectly when loading content consecutively.