Resigning Map in C
Resigning Map in C
How would I resign a map using C without any checks for anything -- just a simple function used to sign a halo 2 map? I am having bad luck searching these forums -- the search engine sucks...
Code: Select all
FileStream fs = new FileStream((map.path,
FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
BinaryReader br = new BinaryReader(fs);
BinaryWriter bw = new BinaryWriter(fs);
int sig = 0;
long length = br.BaseStream.Length;
br.BaseStream.Position = 2048;
for (long i = 2048; i < length; i += 4)
sig ^= br.ReadInt32();
bw.BaseStream.Position = 720;
bw.Write(sig);
br.Close();
bw.Close();
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
Halo 3 Research Thread - Contribute to the research into Halo 3.
- Th2mods
- Readers Club
- Posts: 1229
- Joined: Mon Jan 08, 2007 5:54 pm
- Location: Salt Lake City, Utah
- Contact:
Re: Resigning Map in C
i use googletimrs wrote:How would I resign a map using C without any checks for anything -- just a simple function used to sign a halo 2 map? I am having bad luck searching these forums -- the search engine sucks...
