AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   what is it? compiler (https://forums.alliedmods.net/showthread.php?t=327981)

loiraolhosazul 10-19-2020 17:36

what is it? compiler
 
that
PHP Code:

#emit sysreq.c 

it is
PHP Code:

#pragma compress 1 

what is the function of the two

thEsp 10-19-2020 18:27

Re: what is it? compiler
 
Neither is a function, both are pre-processor directives. The first one acts like inline assembly that (afaik) calls a function and the second must have something to do with binary compression (reducing output size perhaps).

Edit: after a quick search on google it seems both are for some reason used against decompilation.

loiraolhosazul 10-19-2020 19:42

Re: what is it? compiler
 
Quote:

Originally Posted by thEsp (Post 2721939)
Neither is a function, both are pre-processor directives. The first one acts like inline assembly that (afaik) calls a function and the second must have something to do with binary compression (reducing output size perhaps).

Edit: after a quick search on google it seems both are for some reason used against decompilation.

Exactly, however if I try to use '#emit sysreq.c ' the plugin does not work, but the anti decompilation works.

fysiks 10-19-2020 22:42

Re: what is it? compiler
 
Quote:

Originally Posted by loiraolhosazul (Post 2721946)
Exactly, however if I try to use '#emit sysreq.c ' the plugin does not work, but the anti decompilation works.

Sounds like a perfect way to protect against someone using your plugin :wink:.

thEsp 10-20-2020 13:06

Re: what is it? compiler
 
Since AMXX's license expects people to ship plugins by (including) the source code, fysiks got a valid point... more like irony actually.


All times are GMT -4. The time now is 13:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.