Skip to content

Commit

Permalink
Fixed wrong index for xbox 360 reinjection (previous version may have…
Browse files Browse the repository at this point in the history
… caused corruption)
  • Loading branch information
Banz99 committed Mar 9, 2019
1 parent 4fb300a commit d68dd2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified Decompressor.v11.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion Decompressor/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Decompressor/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,14 +1114,14 @@ private void btnRep_Click(object sender, EventArgs e)
}
if(chkXbox.Checked)
{
compressiontype = compressiontype = def[list[i].propertyaddress + 0x23];
compressiontype = compressiontype = def[list[modifyindex].propertyaddress + 0x23];
if(compressiontype == 0x7C){
throw new Exception("CTX1 not currently supported for reinjection");
}
int tilingwidth = (def[list[i].propertyaddress + 0x1C] - 0x80) * 128;
if (def[list[i].propertyaddress + 0x1D] != 0X0)
int tilingwidth = (def[list[modifyindex].propertyaddress + 0x1C] - 0x80) * 128;
if (def[list[modifyindex].propertyaddress + 0x1D] != 0X0)
{
tilingwidth += 32 * def[list[i].propertyaddress + 0x1D] / 0X40;
tilingwidth += 32 * def[list[modifyindex].propertyaddress + 0x1D] / 0X40;
}
List<byte> trimmed = new List<byte>(noheader);
List<byte> arrayed = new List<byte>();
Expand Down

0 comments on commit d68dd2c

Please sign in to comment.