[gnome-games/wip/exalm/platform-preferences: 81/95] retro-simple-game-uri-adapter: Use RetroPlatform
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/platform-preferences: 81/95] retro-simple-game-uri-adapter: Use RetroPlatform
- Date: Sun, 21 Oct 2018 15:08:11 +0000 (UTC)
commit 3ff8eb18ff5cbd601ebfbea6ef14b9e0e3c398f3
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Sep 25 23:04:24 2018 +0500
retro-simple-game-uri-adapter: Use RetroPlatform
src/retro/retro-simple-game-uri-adapter.vala | 4 ++--
src/ui/application.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/retro/retro-simple-game-uri-adapter.vala b/src/retro/retro-simple-game-uri-adapter.vala
index 4eb2d68a..1ac8a890 100644
--- a/src/retro/retro-simple-game-uri-adapter.vala
+++ b/src/retro/retro-simple-game-uri-adapter.vala
@@ -2,9 +2,9 @@
private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
private RetroSimpleType simple_type;
- private Platform platform;
+ private RetroPlatform platform;
- public RetroSimpleGameUriAdapter (RetroSimpleType simple_type, Platform platform) {
+ public RetroSimpleGameUriAdapter (RetroSimpleType simple_type, RetroPlatform platform) {
this.simple_type = simple_type;
this.platform = platform;
}
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 11b530a0..4869c6bb 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -278,7 +278,7 @@ public class Games.Application : Gtk.Application {
}
var platform_name = simple_type.get_platform_name ();
- var platform = new GenericPlatform (simple_type.platform, platform_name);
+ var platform = new RetroPlatform (simple_type.platform, platform_name, {
simple_type.mime_type });
platform_register.add_platform (platform);
var game_uri_adapter = new RetroSimpleGameUriAdapter (simple_type, platform);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]