From ecfb14e2205991316b9ba0944383fb9f1d2a0306 Mon Sep 17 00:00:00 2001 From: Jesse Date: Sun, 29 Dec 2019 11:11:49 +0100 Subject: [PATCH] - Proper GBA boxart size - Fixes uppercase file paths. --- TwilightBoxart.UX/App.config | 2 +- TwilightBoxart.UX/TwilightBoxart.UX.csproj | 12 ++++++------ TwilightBoxart.UX/packages.config | 10 +++++----- TwilightBoxart/BoxartConfig.cs | 1 + TwilightBoxart/Models/Base/Rom.cs | 2 +- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/TwilightBoxart.UX/App.config b/TwilightBoxart.UX/App.config index e1f388e..37eb314 100644 --- a/TwilightBoxart.UX/App.config +++ b/TwilightBoxart.UX/App.config @@ -19,7 +19,7 @@ - + diff --git a/TwilightBoxart.UX/TwilightBoxart.UX.csproj b/TwilightBoxart.UX/TwilightBoxart.UX.csproj index dd9247a..c9f85ad 100644 --- a/TwilightBoxart.UX/TwilightBoxart.UX.csproj +++ b/TwilightBoxart.UX/TwilightBoxart.UX.csproj @@ -1,6 +1,6 @@  - + @@ -87,8 +87,8 @@ ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.7.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll @@ -183,8 +183,8 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + + goto :$(ConfigurationName) @@ -200,5 +200,5 @@ goto :exit :Debug :exit - + \ No newline at end of file diff --git a/TwilightBoxart.UX/packages.config b/TwilightBoxart.UX/packages.config index 091eef6..94d3e02 100644 --- a/TwilightBoxart.UX/packages.config +++ b/TwilightBoxart.UX/packages.config @@ -1,16 +1,16 @@  - - + + - - - + + + diff --git a/TwilightBoxart/BoxartConfig.cs b/TwilightBoxart/BoxartConfig.cs index ffb9eea..7f80d33 100644 --- a/TwilightBoxart/BoxartConfig.cs +++ b/TwilightBoxart/BoxartConfig.cs @@ -104,6 +104,7 @@ public string GetBoxartPath(string root = "") {ConsoleType.FamicomDiskSystem, new Size(1, 1)}, {ConsoleType.GameBoy, new Size(1, 1)}, {ConsoleType.GameBoyColor, new Size(1, 1)}, + {ConsoleType.GameBoyAdvance, new Size(1, 1)}, // NES / GEN/MD / SFC / MS/ GG {ConsoleType.NintendoEntertainmentSystem, new Size(84, 115)}, diff --git a/TwilightBoxart/Models/Base/Rom.cs b/TwilightBoxart/Models/Base/Rom.cs index df1f717..7d30155 100644 --- a/TwilightBoxart/Models/Base/Rom.cs +++ b/TwilightBoxart/Models/Base/Rom.cs @@ -76,7 +76,7 @@ public static IRom FromStream(Stream stream, string filename) } if (result == null && - BoxartConfig.ExtensionMapping.TryGetValue(Path.GetExtension(filename), out var consoleType) && + BoxartConfig.ExtensionMapping.TryGetValue(Path.GetExtension(filename).ToLower(), out var consoleType) && consoleType != ConsoleType.Unknown) { // Backup mapper. Only supports sha1 matching.