E
Experiment5X
Newbie
Allright i am trying to fix the crc for MW2 mpdata. I am using packageIO and i am using this code
private void Checksum(string File)
{
PackageIO.IO IO = new PackageIO.IO(File, Endian.Big, 0xD008);
PackageIO.Algorithms.CRC32 Crc = new PackageIO.Algorithms.CRC32();
byte[] b = IO.Reader.ReadBytes(0x1FFC);
IO.Position = 0xD004;
IO.Writer.Write(Crc.Compute(B));
IO.Close();
}
when i paste this into a new project i get now errors but of coarse when i put it into my project i get this error which i have no idea how to fix and and have tried to fix for about 30 mins with no luck, here it is
'PackageIO.Algorithms.CRC32.Compute(byte[])' cannot be accessed with an instance reference; qualify it with a type name instead
any help would be great, thanks
private void Checksum(string File)
{
PackageIO.IO IO = new PackageIO.IO(File, Endian.Big, 0xD008);
PackageIO.Algorithms.CRC32 Crc = new PackageIO.Algorithms.CRC32();
byte[] b = IO.Reader.ReadBytes(0x1FFC);
IO.Position = 0xD004;
IO.Writer.Write(Crc.Compute(B));
IO.Close();
}
when i paste this into a new project i get now errors but of coarse when i put it into my project i get this error which i have no idea how to fix and and have tried to fix for about 30 mins with no luck, here it is
'PackageIO.Algorithms.CRC32.Compute(byte[])' cannot be accessed with an instance reference; qualify it with a type name instead
any help would be great, thanks