What is the number which precedes each packer plugin entry?
Moderators: Hacker, petermad, Stefan2, white
What is the number which precedes each packer plugin entry?
What is the decimal number which precedes each packer plugin entry in the INI file? Is it a bit field so that TC will know which features the plugin supports?
Yes. From wincmd.ini description:
Roman
HTH1: Can create new archives
2: Can modify existing archives
4: Can handle multiple files in one archive
8: Can delete files from archive
16: Supports the options dialog
Do NOT add this number yourself, Total Commander will add it on the first load of the DLL.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
But sometimes it's really useful to modify itHacker wrote:Do NOT add this number yourself, Total Commander will add it on the first load of the DLL.

But as I know there are more options:
1=can create new archives
2=can modify exisiting archives
4=Archive can contain multiple files
8=can delete files
16=supports the options dialogbox
32=sSupports packing in memory
64=detect archive type by content
128=allow searching for text in archives
256=show as normal files (hide packer icon), open with Ctrl+PgDn, not Enter
- CADweazle
- Senior Member
- Posts: 297
- Joined: 2003-04-03, 09:10 UTC
- Location: Freiburg i.Br. Deutschland
No - it's a IT-usual way to write multiple cases in one number for quick identifying:jdmarch wrote: It seems that some plugins also use undocumented higher bits?:
bat=279,Y:\totcmd\plugin\c-makebat\makebat.wcx
ISO=192,Y:\totcmd\plugin\c-ISO\iso.wcx
e.g. 192 means 128 +64, or 279 is 256 + 16 + 4 + 3 + 2 + 1
You see: the number is equal the sum of abilities

Greetings,
Cheer up, Karl
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Btw, these numbers are documented in the plugin writer's guide on our addons page:
http://www.ghisler.com/plugins.htm
http://www.ghisler.com/plugins.htm
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com