[gnome-games/wip/exalm/savestates: 7/20] nintendo-ds-savestate: Chain up in metadata functions



commit 6c9c4de3f8ea69ca181ac62da8b9abb863bb9aa6
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Jan 25 23:52:11 2020 +0500

    nintendo-ds-savestate: Chain up in metadata functions
    
    We're going to load all metadata there, so it needs to be propagated.

 plugins/nintendo-ds/src/nintendo-ds-savestate.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-savestate.vala 
b/plugins/nintendo-ds/src/nintendo-ds-savestate.vala
index 3430ab4c..e1b3f24f 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-savestate.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-savestate.vala
@@ -5,6 +5,8 @@ public class Games.NintendoDsSavestate : Savestate {
        public bool view_bottom_screen { get; set; }
 
        protected override void load_metadata (KeyFile keyfile) throws KeyFileError {
+               base.load_metadata (keyfile);
+
                var layout_value = keyfile.get_string ("Nintendo DS", "Screen Layout");
                view_bottom_screen = keyfile.get_boolean ("Nintendo DS", "View Bottom Screen");
 
@@ -12,6 +14,8 @@ public class Games.NintendoDsSavestate : Savestate {
        }
 
        protected override void save_metadata (KeyFile keyfile) {
+               base.save_metadata (keyfile);
+
                keyfile.set_string ("Nintendo DS", "Screen Layout", screen_layout.get_value ());
                keyfile.set_boolean ("Nintendo DS", "View Bottom Screen", view_bottom_screen);
        }


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