ioncodes / dnpatch

.NET Patcher library using dnlib
MIT License
313 stars 48 forks source link

Change the way instruction replacement works. #10

Closed 0megaD closed 7 years ago

0megaD commented 7 years ago

Currently if you want to replace instructions at index 1, 5 and 8 you need to provide an array with instructions at index 1 5 and 8.

I think it is more logical to just put the instructions in an array at index 0, 1 and 2.

It also fixes support for script files with multiple instructions. (Previously the code for multiple instructions only actually loaded 1 instruction lol)

ioncodes commented 7 years ago

Please add an example how the target would look like with your change.

ioncodes commented 7 years ago

Looks like someone was faster than me fixing the conflicts :^) Thanks! I will add you to the credits 🎉