From 3c36547e41fc424e509a32c11e08927d66781fa7 Mon Sep 17 00:00:00 2001 From: Matt Pannella Date: Fri, 5 Jan 2024 09:01:45 -0500 Subject: [PATCH] add dmg display mode to new gb core (#220) --- src/models/Core.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/Core.cs b/src/models/Core.cs index 531ddd08..4db0b1b0 100644 --- a/src/models/Core.cs +++ b/src/models/Core.cs @@ -574,12 +574,13 @@ public async Task ReplaceCheck() public async Task AddDisplayModes() { + var info = this.getConfig(); var video = await GetVideoConfig(); List all = new List(); foreach(string id in allModes) { all.Add(new Analogue.Cores.Video.DisplayMode{id = id}); } - if(this.identifier == "Spiritualized.GB" || this.identifier == "Spiritualized.GBC") { + if(info.metadata.platform_ids.Contains("gb")) { foreach(string id in gbModes) { all.Add(new Analogue.Cores.Video.DisplayMode{id = id}); }