Re: Checking if a script is compiled or not in Python?
This is trivially easy to undo. It doesn't matter how you do this. It doesn't matter what language. If the code is in the game, someone can and will eventually figure out how to turn it on, and by the nature of such things it's pretty much always possible to patch the executable.
Storing the password in a file is the kind of thing that someone will get through in about 10 seconds, when they open the game directory and go "huh, look at this password.txt, wonder what's in there".
You have to make a devtools module, and manually remove it before compiling the game. rite a little powershell script that copies all of the files to a temporary directory, remove the devtools module, then build the game. To actually turn devtools on, set an env variable as described above, then:
if os.environ.get("DEVTOOLS", 0):
import devtools
devtools.install()
And you're done, problem solved.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector