What is the number which precedes each packer plugin entry?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jdmarch
Member
Member
Posts: 161
Joined: 2003-03-12, 02:34 UTC
Location: Austin, Texas, USA

What is the number which precedes each packer plugin entry?

Post by *jdmarch »

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?
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Yes. From wincmd.ini description:
1: 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.
HTH
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.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Hacker wrote:
Do NOT add this number yourself, Total Commander will add it on the first load of the DLL.
But sometimes it's really useful to modify it ;-)

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
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
jdmarch
Member
Member
Posts: 161
Joined: 2003-03-12, 02:34 UTC
Location: Austin, Texas, USA

Post by *jdmarch »

Thanks, Hacker, I should have found that myself. :x

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

====== EDIT: ======

OIC DJK has anticipated this question. Thanks!
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

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
No - it's a IT-usual way to write multiple cases in one number for quick identifying:

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 :twisted:.

Greetings,
Cheer up, Karl
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

CADweazle:
Read EDIT of jdmarch. ;)

Icfu
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Btw, these numbers are documented in the plugin writer's guide on our addons page:

http://www.ghisler.com/plugins.htm
Author of Total Commander
https://www.ghisler.com
Post Reply