I have an executable, and I can't do this through code.
I want to inject a little conditional when running the file. This will prevent people of changing the name of the executable.
It would be like:
If this.filename != "RightName" then STOP running
Any ideas? I know it is a bit odd, but I really need that.
Ok. I'm a Game Unity Developer. Before game and some of the code I wrote starts, Unity starts a little window, where you can inject some things through cheat engine or some things like that.
I have some problems with hackers, but I need to fix one, that works by changing the name of the executable. I can't program anything because, hackers can edit my code too by decompiling Unity's DLL.
What I have tried:
I couldn't try nothing, because I don't know much about this.
I searched a lot, but I couldn't find any results.