[gnome-games/wip/exalm/uid: 10/18] steam: Remove SteamUid



commit ec4826408768a43dc40a54a3a8fc23b88081bc37
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Feb 21 16:30:28 2020 +0500

    steam: Remove SteamUid
    
    Replace it with GenericUid.

 plugins/steam/src/meson.build       |  1 -
 plugins/steam/src/steam-plugin.vala |  2 +-
 plugins/steam/src/steam-uid.vala    | 21 ---------------------
 3 files changed, 1 insertion(+), 23 deletions(-)
---
diff --git a/plugins/steam/src/meson.build b/plugins/steam/src/meson.build
index 628ad58a..b0dcc82b 100644
--- a/plugins/steam/src/meson.build
+++ b/plugins/steam/src/meson.build
@@ -7,7 +7,6 @@ vala_sources = [
   'steam-registry.vala',
   'steam-uri-iterator.vala',
   'steam-uri-source.vala',
-  'steam-uid.vala',
 ]
 
 c_args = [
diff --git a/plugins/steam/src/steam-plugin.vala b/plugins/steam/src/steam-plugin.vala
index c45397bc..947ad47e 100644
--- a/plugins/steam/src/steam-plugin.vala
+++ b/plugins/steam/src/steam-plugin.vala
@@ -102,7 +102,7 @@ private class Games.SteamPlugin : Object, Plugin {
                        assert_not_reached ();
                }
 
-               var uid = new SteamUid (prefix, game_id);
+               var uid = new GenericUid (@"$PLATFORM_UID_PREFIX-$prefix$game_id".down ());
                var title = new GenericTitle (game_title);
                var icon = new SteamIcon (app_id, game_id);
                var cover = new SteamCover (game_id);


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