You forgot to mention...

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
sigget
Junior Member
Junior Member
Posts: 5
Joined: 2003-12-21, 04:46 UTC

You forgot to mention...

Post by *sigget »

A call to a packer plugin's PackFiles routine is preceded by a call to SetProcessDataProc with hArcData set to -1 (or 0xFFFFFFFF). This isnt mentioned anywhere in the documentation and wasted hours of debugging.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ups, sorry - I will change my docs!
Author of Total Commander
https://www.ghisler.com
sigget
Junior Member
Junior Member
Posts: 5
Joined: 2003-12-21, 04:46 UTC

Post by *sigget »

It would be real nice with a more structured SDK. With documentation, samples, and a simple driver for the plugins that illustrate how TC actually works with them. The driver should be gui based and include an option for unloading the plugin so that we dont have to restart TC each time.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2sigget
an option for unloading the plugin so that we dont have to restart TC each time
maybe cm_UnloadPlugins could help you here.
Negyedi Vilmos
Junior Member
Junior Member
Posts: 26
Joined: 2003-07-16, 00:50 UTC
Location: Hungary

Post by *Negyedi Vilmos »

You can't use this command from the plugin.
sigget
Junior Member
Junior Member
Posts: 5
Joined: 2003-12-21, 04:46 UTC

Post by *sigget »

One more thing, when returning directories from ReadHeader the name must contain a trailing backslash.
sigget
Junior Member
Junior Member
Posts: 5
Joined: 2003-12-21, 04:46 UTC

Post by *sigget »

Will CloseArchive be called if i return an error from ProcessFile? Or am i supposed to dealloc the archive object myself.
sigget
Junior Member
Junior Member
Posts: 5
Joined: 2003-12-21, 04:46 UTC

Post by *sigget »

I just discovered that DeleteFiles can be called with a path containing wildcards. Nasty. Can i rely on that this only happens when removing whole directories and that the wildcard is always *.* ?
Post Reply