MM2Randomizer.Patcher.Patch.ApplyRandoPatch C# (CSharp) Method

ApplyRandoPatch() public method

public ApplyRandoPatch ( string filename ) : void
filename string
return void
        public void ApplyRandoPatch(string filename)
        {
            using (var stream = new FileStream(filename, FileMode.Open, FileAccess.ReadWrite))
            {
                //GetStringSortedByAddress();

                foreach (KeyValuePair<int, ChangeByteRecord> kvp in Bytes)
                {
                    stream.Position = kvp.Key;
                    stream.WriteByte(kvp.Value.Value);
                }
            }
        }