[gnome-games/wip/exalm/runner-refactor: 34/58] retro-runner: Don't	duplicate core.get_can_access_state()
- From: Alexander Mikhaylenko <alexm src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-games/wip/exalm/runner-refactor: 34/58] retro-runner: Don't	duplicate core.get_can_access_state()
 
- Date: Sun,  8 Mar 2020 13:43:38 +0000 (UTC)
 
commit afad4ead85e4157734454a507d63b46c81957e35
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Mar 6 19:13:16 2020 +0500
    retro-runner: Don't duplicate core.get_can_access_state()
 src/retro/retro-runner.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index c2ce5966..749c100c 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -447,7 +447,7 @@ public class Games.RetroRunner : Object, Runner {
        // savestate creation fails except warn the user of unsaved progress via the
        // QuitDialog in the DisplayView
        public Savestate? try_create_savestate (bool is_automatic) {
-               if (!core.get_can_access_state ()) // Check if the core can support savestates
+               if (!supports_savestates)
                        return null;
 
                if (!is_automatic)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]