[grilo-plugins] thegamesdb: Add TurboGrafx-CD support
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] thegamesdb: Add TurboGrafx-CD support
- Date: Tue, 24 Apr 2018 13:15:07 +0000 (UTC)
commit 6e8a504228178f8e094857f9542771f6bb40efb9
Author: Exalm <exalm7659 gmail com>
Date: Sun Apr 15 19:22:10 2018 +0500
thegamesdb: Add TurboGrafx-CD support
Add TurboGrafx-CD support via the unregistered
'application/x-pc-engine-cd-rom' MIME type as none is registered for
TurboGrafx-CD discs, similar to PlayStation games.
Also move both TurboGrafx-CD and PlayStation to a separate section.
https://bugzilla.gnome.org/show_bug.cgi?id=795275
src/lua-factory/sources/grl-thegamesdb.lua | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-thegamesdb.lua b/src/lua-factory/sources/grl-thegamesdb.lua
index 888762e..53cdcbf 100644
--- a/src/lua-factory/sources/grl-thegamesdb.lua
+++ b/src/lua-factory/sources/grl-thegamesdb.lua
@@ -224,8 +224,6 @@ function get_platform_name(mime_type, suffix)
platform_names['application/x-nes-rom'] = 'Nintendo Entertainment System (NES)'
platform_names['application/x-nintendo-ds-rom'] = 'Nintendo DS'
platform_names['application/x-pc-engine-rom'] = 'TurboGrafx 16'
- -- 'application/x-playstation-rom' is an unregistered MIME type
- platform_names['application/x-playstation-rom'] = 'Sony Playstation'
platform_names['application/x-saturn-rom'] = 'Sega Saturn'
platform_names['application/x-sega-cd-rom'] = 'Sega CD'
-- Also represents 'Sega Game Gear' through magic
@@ -236,6 +234,12 @@ function get_platform_name(mime_type, suffix)
platform_names['application/x-wonderswan-rom'] = 'WonderSwan'
platform_names['application/x-wonderswan-color-rom'] = 'WonderSwan Color'
+ -- CD image file types that can't be identified via magic, but
+ -- should still be differentiated. Usually they are represented
+ -- via application/octet-stream + application/x-cue combination
+ platform_names['application/x-pc-engine-cd-rom'] = 'TurboGrafx CD'
+ platform_names['application/x-playstation-rom'] = 'Sony Playstation'
+
-- For disambiguation
if suffix and
suffix ~= 'bin' and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]