mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add PSID and SPC support
This commit is contained in:
@@ -35,7 +35,9 @@ namespace SabreTools.Helper
|
||||
//N64,
|
||||
NES,
|
||||
PCE,
|
||||
PSID,
|
||||
SNES,
|
||||
SPC,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -27,7 +27,10 @@ namespace SabreTools.Helper
|
||||
//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> 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> SPC = new Dictionary<string, int>();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create all remappings to be used by the program
|
||||
@@ -139,7 +142,7 @@ namespace SabreTools.Helper
|
||||
// Create array of dictionary names
|
||||
string[] skippers =
|
||||
{
|
||||
"a7800", "fds", "lynx", /* "n64", */ "nes", "pce", "snes",
|
||||
"a7800", "fds", "lynx", /* "n64", */ "nes", "pce", "psid", "snes", "spc",
|
||||
};
|
||||
|
||||
// Loop through and add all remappings
|
||||
@@ -215,9 +218,15 @@ namespace SabreTools.Helper
|
||||
case "pce":
|
||||
PCE.Add(header, size);
|
||||
break;
|
||||
case "psid":
|
||||
PSID.Add(header, size);
|
||||
break;
|
||||
case "snes":
|
||||
SNES.Add(header, size);
|
||||
break;
|
||||
case "spc":
|
||||
SPC.Add(header, size);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,9 +158,15 @@
|
||||
<Content Include="Skippers\pce.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Skippers\psid.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Skippers\snes.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Skippers\spc.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="sqlite3-x64.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
||||
29
SabreHelper/Skippers/psid.xml
Normal file
29
SabreHelper/Skippers/psid.xml
Normal 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>
|
||||
13
SabreHelper/Skippers/spc.xml
Normal file
13
SabreHelper/Skippers/spc.xml
Normal 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>
|
||||
Reference in New Issue
Block a user