[gnome-games] retro-runner: Don't flash the screen when autosaving



commit ae38ae5ee995afd2b0083f5786ef97757b387cb8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jan 28 18:46:14 2020 +0500

    retro-runner: Don't flash the screen when autosaving

 src/retro/retro-runner.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 4ed1b9d1..c9d4e502 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -459,8 +459,10 @@ public class Games.RetroRunner : Object, Runner {
                if (!core.get_can_access_state ()) // Check if the core can support savestates
                        return null;
 
-               try {
+               if (!is_automatic)
                        new_savestate_created ();
+
+               try {
                        return create_savestate (is_automatic);
                }
                catch (Error e) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]