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

runner: Don't throw Errors from resume()

parent a218fb83
......@@ -80,7 +80,7 @@ public class Games.CommandRunner : Object, Runner {
}
}
public void resume () throws Error {
public void resume () {
}
public void pause () {
......
......@@ -10,11 +10,12 @@ public interface Games.Runner : Object {
public abstract MediaSet? media_set { get; }
public abstract InputMode input_mode { get; set; }
public abstract bool try_init_phase_one (out string error_message);
public abstract Gtk.Widget get_display ();
public abstract Gtk.Widget? get_extra_widget ();
public abstract bool try_init_phase_one (out string error_message);
public abstract void start () throws Error;
public abstract void resume () throws Error;
public abstract void resume ();
public abstract void pause ();
public abstract void stop ();
......
......@@ -46,7 +46,7 @@ private class Games.DummyRunner : Object, Runner {
public void start () throws Error {
}
public void resume () throws Error {
public void resume () {
}
public void pause () {
......
......@@ -387,12 +387,7 @@ private class Games.DisplayView : Object, UiView {
private bool cancel_quitting_game () {
if (box.runner != null)
try {
box.runner.resume ();
}
catch (Error e) {
warning (e.message);
}
box.runner.resume ();
return false;
}
......@@ -416,12 +411,7 @@ private class Games.DisplayView : Object, UiView {
return;
if (window.is_active)
try {
box.runner.resume ();
}
catch (Error e) {
warning (e.message);
}
box.runner.resume ();
else if (with_delay)
focus_out_timeout_id = Timeout.add (FOCUS_OUT_DELAY_MILLISECONDS, on_focus_out_delay_elapsed);
else
......
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