Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 00:13:29 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 00:13:29 +0300
commita6328fb50012c128e41d23d2de81241aeab14de2 (patch)
tree0ba979385496ba4a4f4a78d12e7a2090638b0ff7
parent3275e49815491257f7425e8484d42c2752bb11b9 (diff)
IPS patcher can enlarge ROMs now
-rw-r--r--IpsPatcher.cs4
-rw-r--r--hakchi_gui.csproj3
-rw-r--r--patches/46fd7843-Splatter House - Wanpaku Graffiti (J) [!] - MMC3 patch.ipsbin0 -> 139391 bytes
3 files changed, 7 insertions, 0 deletions
diff --git a/IpsPatcher.cs b/IpsPatcher.cs
index c7ea3ae2..88da4df9 100644
--- a/IpsPatcher.cs
+++ b/IpsPatcher.cs
@@ -25,6 +25,8 @@ namespace com.clusterrr.hakchi_gui
{
while (length > 0)
{
+ if (address >= data.Length)
+ Array.Resize(ref data, data.Length*2);
data[address] = patch[pos];
address++;
pos++;
@@ -37,6 +39,8 @@ namespace com.clusterrr.hakchi_gui
var b = patch[pos + 2];
while (length > 0)
{
+ if (address >= data.Length)
+ Array.Resize(ref data, data.Length*2);
data[address] = b;
address++;
length--;
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj
index f8c128c3..85e0a614 100644
--- a/hakchi_gui.csproj
+++ b/hakchi_gui.csproj
@@ -363,6 +363,9 @@
<None Include="patches\279710dc-Battletoads %28U%29 [bugfix].ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
+ <None Include="patches\46fd7843-Splatter House - Wanpaku Graffiti %28J%29 [!] - MMC3 patch.ips">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
<None Include="patches\96087988-RoboCop 3 %28U%29 [!] - NES Mini patch.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
diff --git a/patches/46fd7843-Splatter House - Wanpaku Graffiti (J) [!] - MMC3 patch.ips b/patches/46fd7843-Splatter House - Wanpaku Graffiti (J) [!] - MMC3 patch.ips
new file mode 100644
index 00000000..0d222398
--- /dev/null
+++ b/patches/46fd7843-Splatter House - Wanpaku Graffiti (J) [!] - MMC3 patch.ips
Binary files differ