[gnome-games/wip/aplazas/781334-refactor-game-source: 5/35] playstation: Add PlayStationGameFacory.get_mime_types ()



commit 71e1fda0f6194b31eec251fc37d2f52a835ca8ec
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu May 4 11:19:20 2017 +0200

    playstation: Add PlayStationGameFacory.get_mime_types ()

 .../playstation/src/playstation-game-factory.vala  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/playstation/src/playstation-game-factory.vala 
b/plugins/playstation/src/playstation-game-factory.vala
index 0979547..0d81f11 100644
--- a/plugins/playstation/src/playstation-game-factory.vala
+++ b/plugins/playstation/src/playstation-game-factory.vala
@@ -26,6 +26,10 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
                return is_uri_valid (uri);
        }
 
+       public string[] get_mime_types () {
+               return { SEARCHED_MIME_TYPE };
+       }
+
        public bool is_uri_valid (string uri) {
                File file = File.new_for_uri(uri);
 


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