
04-05-2026, 14:17
|
|
Registered User
|
|
Join Date: Apr 2024
Location: Dhaka
Posts: 60
Thanks: 46
Thanked 40 Times in 23 Posts
|
|
Quote:
Originally Posted by kj911
Could someone write a good guide on how to make a CLS filter for FreeArc??
No, I don't mean the "CLS-Generator" solutions, unfortunately they don't work in all many cases.
Now, let's assume we have this:
compressor.c /source code or alternative EXE file/
CLS source code package from FreeArc. + MinGW compiler.
What do we need to modify in the *.c source code during compilation so that, upon receiving a "cls-cmp.dll" file at the end of the process, it works as a DLL with FreeArc, either as an decompressor only or with full functionality, when using the "-mcmp..." switch during compression.
To make things more complicated, let's assume that this is just the syntax (*.c or EXE):
compressor.exe e/d in out
What should we write in "cls.h" or other "simple*.cpp" files?
One possible case is that we will only have a *.dll file, nothing else is needed, it can be used already.
While the other, if only an EXE file is available, how do we "bind" the cls-*.dll file to our file so that the given compressor can work in STDIO mode? (no tmp files are written during operations.) Or do we need to modify the EXE as well? (see: the Razor case.)
|
im definitely not the right person to suggest anything on this but for somewhat of a reference you can check Addons/CLS folder on any freearc installation. i attached one from v0.67a.
|