ManuTOO
unread,Sep 23, 2012, 3:17:22 AM9/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to obfu...@googlegroups.com
Thanks for the clarification !
It turns out I was putting the option lines out of the <Module... ></Module> tag ; it works better now they are inside it..! ;-)
So now, I'd just need 1 more thing : I'd like to obfuscate the parameters of the methods, but not the methods' name.
ie: void GoTo(int RoomNumber, int Level) would give => void Goto(int a, int b)
Is it possible ?
So far, I'm using :
<Module file="$(InPath)\Assembly-CSharp.dll" >
<SkipType name="^C((?!/).)*$"/>
<SkipMethod type="^[^.]*$" name="*"/>
<SkipField type="^.*$" rx="^((?!e_|es_).)*$" attrib="public"/>
</Module>
It's for a Unity3D game.
<SkipType name="^C((?!/).)*$"/> => All my classes start with 'C' so they are not obfuscated ; all subclasses, substructs & sub enums' names get obfuscated.
<SkipMethod type="^[^.]*$" name="*"/> => All methods are not obfuscated
<SkipField type="^.*$" rx="^((?!e_|es_).)*$" attrib="public"/> => All my enum fields start with e_ or es_ , so they get obfuscated ;
I'm pretty happy with the result as I just don't want a company steals my code & reuses it, so I don't need a lot of obfuscation, just enough to make it painful enough to read it & change it.