[gnome-games/wip/exalm/platform-preferences] retro: Add RetroPlatform



commit a056efc6808a8300baa619e2c14a996ff8300214
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Sep 25 23:03:19 2018 +0500

    retro: Add RetroPlatform

 src/meson.build               |  1 +
 src/retro/retro-platform.vala | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index 827ea4e9..c04ac402 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -113,6 +113,7 @@ vala_sources = [
   'retro/retro-gamepad.vala',
   'retro/retro-input-manager.vala',
   'retro/retro-options.vala',
+  'retro/retro-platform.vala',
   'retro/retro-runner.vala',
   'retro/retro-simple-game-uri-adapter.vala',
   'retro/retro-simple-type.vala',
diff --git a/src/retro/retro-platform.vala b/src/retro/retro-platform.vala
new file mode 100644
index 00000000..14d506c2
--- /dev/null
+++ b/src/retro/retro-platform.vala
@@ -0,0 +1,23 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public class Games.RetroPlatform : Object, Platform {
+       private string name;
+       private string id;
+
+       public RetroPlatform (string id, string name) {
+               this.id = id;
+               this.name = name;
+       }
+
+       public string get_id () {
+               return id;
+       }
+
+       public string get_name () {
+               return name;
+       }
+
+       public PreferencesPage get_preferences () {
+               return new PreferencesPageDummyPlatform ();
+       }
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]