[gnome-games] mega-drive: Support Sega Pico games



commit a657ce1613bf6ffe7b56a355cbbc9a167551e4ea
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Aug 4 00:02:56 2016 +0200

    mega-drive: Support Sega Pico games
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769475

 plugins/mega-drive/src/mega-drive-plugin.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mega-drive/src/mega-drive-plugin.vala b/plugins/mega-drive/src/mega-drive-plugin.vala
index 7443223..f6f952f 100644
--- a/plugins/mega-drive/src/mega-drive-plugin.vala
+++ b/plugins/mega-drive/src/mega-drive-plugin.vala
@@ -7,6 +7,9 @@ private class Games.MegaDrivePlugin : Object, Plugin {
        private const string 32X_PREFIX = "mega-drive-32x";
        private const string 32X_MIME_TYPE = "application/x-genesis-32x-rom";
 
+       private const string PICO_PREFIX = "sega-pico";
+       private const string PICO_MIME_TYPE = "application/x-sega-pico-rom";
+
        private const string MODULE_BASENAME = "libretro-mega-drive.so";
        private const bool SUPPORTS_SNAPSHOTTING = true;
 
@@ -36,6 +39,10 @@ private class Games.MegaDrivePlugin : Object, Plugin {
                        prefix = 32X_PREFIX;
                        mime_type = 32X_MIME_TYPE;
                }
+               else if (header.is_pico ()) {
+                       prefix = PICO_PREFIX;
+                       mime_type = PICO_MIME_TYPE;
+               }
                else
                        assert_not_reached ();
 


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