Add PSID and SPC support

This commit is contained in:
Matt Nadareski
2016-05-01 10:07:35 -07:00
parent ac50e10344
commit f5b47bcd52
5 changed files with 60 additions and 1 deletions

View File

@@ -35,7 +35,9 @@ namespace SabreTools.Helper
//N64, //N64,
NES, NES,
PCE, PCE,
PSID,
SNES, SNES,
SPC,
} }
/// <summary> /// <summary>

View File

@@ -27,7 +27,10 @@ namespace SabreTools.Helper
//public static Dictionary<string, int> N64 = new Dictionary<string, int>(); //public static Dictionary<string, int> N64 = new Dictionary<string, int>();
public static Dictionary<string, int> NES = new Dictionary<string, int>(); public static Dictionary<string, int> NES = new Dictionary<string, int>();
public static Dictionary<string, int> PCE = new Dictionary<string, int>(); public static Dictionary<string, int> PCE = new Dictionary<string, int>();
public static Dictionary<string, int> PSID = new Dictionary<string, int>();
public static Dictionary<string, int> SNES = new Dictionary<string, int>(); public static Dictionary<string, int> SNES = new Dictionary<string, int>();
public static Dictionary<string, int> SPC = new Dictionary<string, int>();
/// <summary> /// <summary>
/// Create all remappings to be used by the program /// Create all remappings to be used by the program
@@ -139,7 +142,7 @@ namespace SabreTools.Helper
// Create array of dictionary names // Create array of dictionary names
string[] skippers = string[] skippers =
{ {
"a7800", "fds", "lynx", /* "n64", */ "nes", "pce", "snes", "a7800", "fds", "lynx", /* "n64", */ "nes", "pce", "psid", "snes", "spc",
}; };
// Loop through and add all remappings // Loop through and add all remappings
@@ -215,9 +218,15 @@ namespace SabreTools.Helper
case "pce": case "pce":
PCE.Add(header, size); PCE.Add(header, size);
break; break;
case "psid":
PSID.Add(header, size);
break;
case "snes": case "snes":
SNES.Add(header, size); SNES.Add(header, size);
break; break;
case "spc":
SPC.Add(header, size);
break;
} }
} }
} }

View File

@@ -158,9 +158,15 @@
<Content Include="Skippers\pce.xml"> <Content Include="Skippers\pce.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Skippers\psid.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Skippers\snes.xml"> <Content Include="Skippers\snes.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Skippers\spc.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="sqlite3-x64.dll"> <Content Include="sqlite3-x64.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<detector>
<name>psid</name>
<author>Yori Yoshizuki</author>
<version>1.2</version>
<rule start_offset="76" end_offset="EOF" operation="none">
<data offset="0" value="5053494400010076" result="true"/>
</rule>
<rule start_offset="76" end_offset="EOF" operation="none">
<data offset="0" value="505349440003007c" result="true"/>
</rule>
<rule start_offset="7c" end_offset="EOF" operation="none">
<data offset="0" value="505349440002007c" result="true"/>
</rule>
<rule start_offset="7c" end_offset="EOF" operation="none">
<data offset="0" value="505349440001007c" result="true"/>
</rule>
<rule start_offset="7c" end_offset="EOF" operation="none">
<data offset="0" value="525349440002007c" result="true"/>
</rule>
</detector>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<detector>
<name>Nintendo Super Famicon SPC</name>
<author>Yori Yoshizuki</author>
<version>1.0</version>
<rule start_offset="00100" end_offset="EOF" operation="none">
<data offset="0" value="534E45532D535043" result="true"/>
</rule>
</detector>