Commit ad62af77 authored by Andrei Lisita's avatar Andrei Lisita 🎮

runner: Add supports_savestates property

parent 2fad1cd3
......@@ -13,6 +13,10 @@ public class Games.CommandRunner : Object, Runner {
get { return false; }
}
public bool supports_savestates {
get { return false; }
}
public MediaSet? media_set {
get { return null; }
}
......
......@@ -6,6 +6,7 @@ public interface Games.Runner : Object {
public abstract bool can_fullscreen { get; }
public abstract bool can_quit_safely { get; }
public abstract bool can_resume { get; }
public abstract bool supports_savestates { get; }
public abstract MediaSet? media_set { get; }
public abstract InputMode input_mode { get; set; }
......
......@@ -13,6 +13,10 @@ private class Games.DummyRunner : Object, Runner {
get { return false; }
}
public bool supports_savestates {
get { return false; }
}
public MediaSet? media_set {
get { return null; }
}
......
......@@ -16,6 +16,10 @@ public class Games.RetroRunner : Object, Runner {
get { return game_savestates.length != 0; }
}
public bool supports_savestates {
get { return core.get_can_access_state (); }
}
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