From c459709b165c365255134377a5013caded4b334d Mon Sep 17 00:00:00 2001 From: Christian Emmer <10749361+emmercm@users.noreply.github.com> Date: Sat, 23 Mar 2024 20:26:25 -0400 Subject: [PATCH] Fix: report Dreamcast GD-ROMs as GD-ROMs (#15) --- src/chdman/chdmanInfo.ts | 3 +-- src/chdman/common.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chdman/chdmanInfo.ts b/src/chdman/chdmanInfo.ts index 7cf468a..df21c05 100644 --- a/src/chdman/chdmanInfo.ts +++ b/src/chdman/chdmanInfo.ts @@ -82,8 +82,7 @@ export default { } else if (metadataTags.has('CHCD') || metadataTags.has('CHTR') || metadataTags.has('CHT2')) { type = CHDType.CD_ROM; } else if (metadataTags.has('CHGT') || metadataTags.has('CHGD')) { - // Dreamcast GD_ROM - type = CHDType.CD_ROM; + type = CHDType.GD_ROM; } else if (metadataTags.has('DVD')) { type = CHDType.DVD_ROM; } diff --git a/src/chdman/common.ts b/src/chdman/common.ts index 1da6de1..7b4824d 100644 --- a/src/chdman/common.ts +++ b/src/chdman/common.ts @@ -16,6 +16,7 @@ export enum CHDType { RAW = 1, HARD_DISK, CD_ROM, + GD_ROM, DVD_ROM, // LASER_DISC, UNKNOWN,