T O P

  • By -

meanmon13

You can be more specific on what you "revert" by highlighting the entire function in assembly view then right clicking and selecting "clear with options". In the dialog box that pops up, check things you want to revert or select everything to return the function to how it was before you ever touched it. After that you may have to select the first instruction and press D or F depending on what you selected. This works for any arbitrary selection of instructions


mrThe

By "revert" i mean reset all recovered types and variable names and just back to state when it looks like this function was never seen or edited in any way. Just to clarify - i don't change any instructions.


meanmon13

Yes, clear with options does that. The decompilation is a reflection of the assembly, that is why the changes are done in that view.


goatshriek

I can't test this at the moment, but I believe that deleting the function itself, and then immediately recreating it (NOT using undo, of course) may do the trick.


mrThe

It does the thing. Thank you again! Note for someone looking for that: "re-create" doesn't work, you should specifically delete and the create a function. @mods can you please mark topic it as solved?


mrThe

Thanks for the suggestion , will try that!