Swordfish90 / Lemuroid

All in one emulator on Android!
GNU General Public License v3.0
2.34k stars 145 forks source link

Auto-save is loaded when external controller is disconnected overriding progress with old data #799

Open felipegomesdm2 opened 11 months ago

felipegomesdm2 commented 11 months ago

Describe the bug When an external controller (a Bluetooth one, any should do) is disconnected, Lemuroid loads the last auto-save. This auto-save also overrides the manually saved data.

To Reproduce Steps to reproduce the behavior:

  1. Connect a Bluetooth controller
  2. Open any game
  3. Disconnect the controller

Expected behavior The auto-save shouldn't happen because it might delete your progress.

Smartphone:

Additional context I believe this is a workaround Lemuroid has for RetroArch not being able to show the on-screen controller once an external controller is connected, so it resets to the last auto-save. However, is it possible to auto-save when a controller is disconnected? That way, when the controller is connected again, it will auto-load the last state.

If you need help, please let me know.

rezabrando commented 11 months ago

I just logged in to report this behavior. The emulator actually restarts the game when a controller disconnects or when a controller connects. I don't remember when it started to do this, but I'm pretty sure this was not the case in previous versions since I got one of iPega Bluetooth controllers and they tends to turn themselves off when there is no activity for 5 minutes. Now imagine you are playing Metal Gear Solid and you are watching a cutscene and the controller is idle for 5 minutes since MGS have long cutscenes, BOOM, the game restarts in the middle of the cutscene!

Since I played MGS before on Lemuroid and watched all the cutscenes whit this controller, I am certain that Lemuroid didn't behave like this before.

rezabrando commented 3 days ago

This has been fixed in 1.16.0.