Commit 9223932a authored by Andrei Lisita's avatar Andrei Lisita 🎮

runner: Add can_support_savestates property

parent ad62af77
......@@ -17,6 +17,10 @@ public class Games.CommandRunner : Object, Runner {
get { return false; }
}
public bool can_support_savestates {
get { return false; }
}
public MediaSet? media_set {
get { return null; }
}
......
......@@ -7,6 +7,7 @@ public interface Games.Runner : Object {
public abstract bool can_quit_safely { get; }
public abstract bool can_resume { get; }
public abstract bool supports_savestates { get; }
public abstract bool can_support_savestates { get; } // Now or in the future
public abstract MediaSet? media_set { get; }
public abstract InputMode input_mode { get; set; }
......
......@@ -17,6 +17,10 @@ private class Games.DummyRunner : Object, Runner {
get { return false; }
}
public bool can_support_savestates {
get { return false; }
}
public MediaSet? media_set {
get { return null; }
}
......
......@@ -20,6 +20,10 @@ public class Games.RetroRunner : Object, Runner {
get { return core.get_can_access_state (); }
}
public bool can_support_savestates {
get { return true; }
}
private MediaSet _media_set;
public MediaSet? media_set {
get { return _media_set; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment