Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public CredentialManager()
- {
- int size;
- byte[] data;
- using (FileStream fs = new FileStream("stump_patch.swf", FileMode.Open))
- {
- size = (int)fs.Length;
- data = new byte[size];
- fs.Read(data, 0, size);
- }
- BigEndianWriter rdm = new BigEndianWriter();
- rdm.WriteShort(o);
- rdm.WriteUTF("AKSF");
- rdm.WriteShort(1);
- rdm.WriteInt(1);
- rdm.WriteByte(o);
- rdm.WriteBytes(data);
- var index = rdm.Position;
- rdm.Seek(o);
- rdm.WriteShort((short)(index - 3));
- rdm.Seek(index);
- m_patch = rdm.Data;
- // this.m_patch = File.ReadAllBytes("stump_patch.swf");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement