[gnome-games] mega-drive: Add is_32x() to MegaDriveHeader



commit b692a07cb3f376ececcc162dbb187f000e831df3
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Aug 3 19:22:53 2016 +0200

    mega-drive: Add is_32x() to MegaDriveHeader
    
    This will be used in the next commit to discriminte Mega Drive headers
    from 32X ones.

 plugins/mega-drive/src/mega-drive-header.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mega-drive/src/mega-drive-header.vala b/plugins/mega-drive/src/mega-drive-header.vala
index bdd28ef..e487721 100644
--- a/plugins/mega-drive/src/mega-drive-header.vala
+++ b/plugins/mega-drive/src/mega-drive-header.vala
@@ -107,6 +107,16 @@ private class Games.MegaDriveHeader : Object {
                        return false;
                }
        }
+
+       public bool is_32x () {
+               switch (system) {
+               case MegaDriveSystem.32X:
+               case MegaDriveSystem.MEGA_CD_32X:
+                       return true;
+               default:
+                       return false;
+               }
+       }
 }
 
 errordomain Games.MegaDriveError {


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