|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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();
|
Is how to sign a map in C#, what would I do to get this into C/C++ for use in kdevelop
This post has been edited 1 times, last edit by "timrs" (Apr 2nd 2007, 10:41pm)