[gnome-games] retro-runner: Simplify starting and savestate loading
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] retro-runner: Simplify starting and savestate loading
- Date: Thu, 20 Feb 2020 20:37:58 +0000 (UTC)
commit f7a43bbd2e1c1bf82ea40efa42fb98c456f9dd36
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Feb 20 04:38:33 2020 +0500
retro-runner: Simplify starting and savestate loading
There's no need to explicitly do iterate() anymore. Additionally, remove
the extra reset() and stop().
src/retro/retro-runner.vala | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index ad32d8fe..15ab79be 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -195,8 +195,6 @@ public class Games.RetroRunner : Object, Runner {
}
public void load_previewed_savestate () throws Error {
- core.stop ();
-
tmp_live_savestate = previewed_savestate.clone_in_tmp ();
core.save_directory = tmp_live_savestate.get_save_directory_path ();
load_save_ram (previewed_savestate.get_save_ram_path ());
@@ -237,9 +235,6 @@ public class Games.RetroRunner : Object, Runner {
is_ready = true;
}
- core.iteration (); // Needed to finish preparing some cores.
- core.reset ();
-
core.run ();
running = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]