Commit 993a000e authored by Andrei Lisita's avatar Andrei Lisita 🎮

runner: Add preview_current_state()

parent ecbcd324
......@@ -56,6 +56,9 @@ public class Games.CommandRunner : Object, Runner {
public void capture_current_state_pixbuf () {
}
public void preview_current_state () {
}
public void start () throws Error {
string? working_directory = null;
string[]? envp = null;
......
......@@ -20,6 +20,7 @@ public interface Games.Runner : Object {
public abstract void stop ();
public abstract void capture_current_state_pixbuf ();
public abstract void preview_current_state ();
public abstract bool try_create_savestate (bool is_automatic);
public abstract void load_savestate (Savestate savestate) throws Error;
......
......@@ -43,6 +43,9 @@ private class Games.DummyRunner : Object, Runner {
public void capture_current_state_pixbuf () {
}
public void preview_current_state () {
}
public void start () throws Error {
}
......
......@@ -154,6 +154,10 @@ public class Games.RetroRunner : Object, Runner {
current_state_pixbuf = view.get_pixbuf ();
}
public void preview_current_state () {
view.set_pixbuf (current_state_pixbuf);
}
public virtual Gtk.Widget? get_extra_widget () {
return null;
}
......
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