Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to copy & paste instructions from dnSpy #5

Open
SilveIT opened this issue Jan 10, 2022 · 1 comment
Open

Ability to copy & paste instructions from dnSpy #5

SilveIT opened this issue Jan 10, 2022 · 1 comment

Comments

@SilveIT
Copy link

SilveIT commented Jan 10, 2022

Would be awesome to have a parser for a list of instructions copied from dnSpy.
Current version of your patcher is great for patching small segments of code, but it really sucks when you have >50 instructions and you have to recreate them in the patcher. Would be better to have a "From clipboard" button inside the script editor.
Copy as text in dnSpy returns a string like this:

8	001D	stloc.0
9	001E	ldloca.s	V_0 (0)
10	0020	constrained.	[mscorlib]System.Guid
11	0026	callvirt	instance string [mscorlib]System.Object::ToString()

We have both indices and instructions. The only problem is to create a better type resolver or just remove stuff like "instance", "class" and replace types like "string" with "System.String" temporarly.

@andywu188
Copy link
Contributor

Very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants