[gnome-games/wip/exalm/savestates: 4/20] retro-runner: Throw errors from metadata functions



commit da9634ce9e26494abf4b801be74ebc877b54f5b0
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Jan 25 23:08:57 2020 +0500

    retro-runner: Throw errors from metadata functions

 plugins/nintendo-ds/src/nintendo-ds-runner.vala | 6 +++---
 src/retro/retro-runner.vala                     | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-runner.vala b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
index 19b8f24d..67c89c29 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-runner.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-runner.vala
@@ -113,7 +113,7 @@ private class Games.NintendoDsRunner : RetroRunner {
                return true;
        }
 
-       protected override void save_savestate_metadata (Savestate savestate) {
+       protected override void save_savestate_metadata (Savestate savestate) throws Error {
                base.save_savestate_metadata (savestate);
 
                assert (savestate is NintendoDsSavestate);
@@ -123,7 +123,7 @@ private class Games.NintendoDsRunner : RetroRunner {
                ds_savestate.view_bottom_screen = view_bottom_screen;
        }
 
-       protected override void load_savestate_metadata (Savestate savestate) {
+       protected override void load_savestate_metadata (Savestate savestate) throws Error {
                base.load_savestate_metadata (savestate);
 
                assert (savestate is NintendoDsSavestate);
@@ -135,7 +135,7 @@ private class Games.NintendoDsRunner : RetroRunner {
                view_bottom_screen = ds_savestate.view_bottom_screen;
        }
 
-       protected override void reset_metadata (Savestate last_savestate) {
+       protected override void reset_metadata (Savestate last_savestate) throws Error {
                base.reset_metadata (last_savestate);
 
                screen_layout = NintendoDsLayout.TOP_BOTTOM;
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 9f1a25a4..f88cb158 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -660,13 +660,13 @@ public class Games.RetroRunner : Object, Runner {
                }
        }
 
-       protected virtual void save_savestate_metadata (Savestate savestate) {
+       protected virtual void save_savestate_metadata (Savestate savestate) throws Error {
        }
 
-       protected virtual void load_savestate_metadata (Savestate savestate) {
+       protected virtual void load_savestate_metadata (Savestate savestate) throws Error {
        }
 
-       protected virtual void reset_metadata (Savestate last_savestate) {
+       protected virtual void reset_metadata (Savestate last_savestate) throws Error {
        }
 }
 


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