[gnome-games/wip/exalm/retro-runner: 3/7] retro-simple-game-uri-adapter: Use RetroRunnerBuilder
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/retro-runner: 3/7] retro-simple-game-uri-adapter: Use RetroRunnerBuilder
- Date: Fri, 4 Jan 2019 07:57:25 +0000 (UTC)
commit eb2fa3c45a897cd1e645327e67085559d8c2baf4
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Jan 4 03:02:45 2019 +0500
retro-simple-game-uri-adapter: Use RetroRunnerBuilder
src/retro/retro-simple-game-uri-adapter.vala | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/retro/retro-simple-game-uri-adapter.vala b/src/retro/retro-simple-game-uri-adapter.vala
index c3ef3cf4..afb0a1f1 100644
--- a/src/retro/retro-simple-game-uri-adapter.vala
+++ b/src/retro/retro-simple-game-uri-adapter.vala
@@ -30,7 +30,13 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
var description = new GriloDescription (media);
var rating = new GriloRating (media);
var core_source = new RetroCoreSource (platform, { simple_type.mime_type });
- var runner = new RetroRunner (core_source, uri, uid, title);
+
+ var builder = new RetroRunnerBuilder ();
+ builder.core_source = core_source;
+ builder.uri = uri;
+ builder.uid = uid;
+ builder.title = title;
+ var runner = builder.to_runner ();
var game = new GenericGame (uid, title, platform, runner);
game.set_cover (cover);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]