[gnome-games/wip/exalm/runner-refactor] retro-runner: Don't instantiate in start()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/runner-refactor] retro-runner: Don't instantiate in start()
- Date: Fri, 6 Mar 2020 22:22:01 +0000 (UTC)
commit 9dfd68c67f958bd85bc14c2514662af83ee8017c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Mar 7 03:01:45 2020 +0500
retro-runner: Don't instantiate in start()
Instead, assume it's always true. As far as I can see, there are no
codepaths currently where this is not true.
src/retro/retro-runner.vala | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index cbd0e062..3efaf7db 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -220,13 +220,7 @@ public class Games.RetroRunner : Object, Runner {
}
public void start () throws Error {
- if (!is_initialized) {
- tmp_save_dir = create_tmp_save_dir ();
- if (latest_savestate != null)
- latest_savestate.copy_save_dir_to (tmp_save_dir);
-
- instantiate_core ();
- }
+ assert (is_initialized);
if (!is_ready) {
reset_metadata (latest_savestate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]