[gnome-games] mega-drive: Add is_32x() to MegaDriveHeader
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] mega-drive: Add is_32x() to MegaDriveHeader
- Date: Wed, 3 Aug 2016 18:28:48 +0000 (UTC)
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]