goldmojo / fba-sdl

Official Repository of FB Alpha Emulator
https://www.fbalpha.com
7 stars 1 forks source link

[PocketGo2 v2 / RG350P] FBA reloads completely the rom when using "Reset" in option menu during a game #2

Open DrUm78 opened 4 years ago

DrUm78 commented 4 years ago

Hardware: PocketGo2 v2 / RG350P O/S: Rogue FW 1.0.9 for PocketGo2 v2 / Rogue FW 1.7.10 for RG350 Software: FinalBurnAlpha_2020-01-29-.44_alias_cmdline_gameconfig_controls_samples.opk

When using "Reset" in option menu during a game, the emulator will reload completely the game, which is not required here, that should simply reset the system without reloading all the rom (quite problematic with large roms like KOF2003 that takes long to load)

Steps to reproduce:

  1. Load any rom
  2. Press L+R+Start to access FBA option menu
  3. Select "Reset"
  4. Notice that it reloads entirely the rom files
goldmojo commented 4 years ago

First analysis about current "Reset" implementation:

  1. Execute a brand new DrvInit routine
  2. This calls these functions DrvExit => BrunDrvExit => (...) + BurnExitMemoryManager
  3. As a consequence it frees all machine memory including rom itself

We could try to remove the final BurnExitMemoryManager but it could have a lot of side effects.