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.
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.