From 4b3a7c567d13bad64a55d70b4b7854a51a520be3 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Mon, 9 Oct 2017 05:05:39 +0300 Subject: remove_thumbnail fix for NES Mini --- Apps/SnesGame.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Apps') diff --git a/Apps/SnesGame.cs b/Apps/SnesGame.cs index 8249e7b7..e63e4c9c 100644 --- a/Apps/SnesGame.cs +++ b/Apps/SnesGame.cs @@ -46,7 +46,7 @@ namespace com.clusterrr.hakchi_gui { "ZELDANODENSETSU", 0x101F }, { "SHVC FIREEMBLEM", 0x102B }, { "SUPER DONKEY KONG", 0x1023 }, - { "Super Street Fighter", 0x1056 }, + //{ "Super Street Fighter", 0x1056 }, { "ROCKMAN X", 0x110A }, { "CHOHMAKAIMURA", 0x1004 }, { "SeikenDensetsu 2", 0x10B2 }, @@ -89,6 +89,7 @@ namespace com.clusterrr.hakchi_gui var ext = Path.GetExtension(inputFileName); if ((ext.ToLower() == ".smc") && ((rawRomData.Length % 1024) != 0)) { + Debug.WriteLine("Removing SMC header"); var stripped = new byte[rawRomData.Length - 512]; Array.Copy(rawRomData, 512, stripped, 0, stripped.Length); rawRomData = stripped; @@ -180,6 +181,9 @@ namespace com.clusterrr.hakchi_gui Debug.WriteLine($"SA1 chip detected"); presetId = 0x109C; // ID from Super Mario RPG, SA1 } + } else + { + Debug.WriteLine($"We have preset for this game"); } Debug.WriteLine(string.Format("PresetID: 0x{0:X2}{1:X2}, extra byte: {2:X2}", presetId & 0xFF, (presetId >> 8) & 0xFF, chip)); -- cgit v1.2.3