Skip to content

Commit

Permalink
Fixed GSPalConv
Browse files Browse the repository at this point in the history
Array indexes, my old nemesis. We meet again.
  • Loading branch information
Techokami committed Sep 7, 2016
1 parent 49d5070 commit eadd63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GSPalConv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void Main(string[] args)
//Palette data offset (why do some games put this data in different places? Default is for working with disassembly files)
if (args.Length >= 2)
{
offset = Int32.Parse(args[2], System.Globalization.NumberStyles.HexNumber);
offset = Int32.Parse(args[1], System.Globalization.NumberStyles.HexNumber);
}
else
{
Expand Down Expand Up @@ -112,8 +112,8 @@ static void Main(string[] args)
br.BaseStream.Seek(0, SeekOrigin.Begin);
}


br.ReadBytes(offset);
br.BaseStream.Seek(offset, SeekOrigin.Begin);
//br.ReadBytes(offset);

//create the output file
try
Expand Down
Binary file modified GSPalConv.exe
Binary file not shown.

0 comments on commit eadd63b

Please sign in to comment.