Sir_SiLvA wrote:Oh realy? now that would make cd and wcx-plugins kinda useless dont you think?
No, I don't. Why? Plugin is doing only upnacking, testing for errors, returning unpacked contents. Total Commander is doing all the navigation, displaying received contents in the file panels. When I write a WCX plugin I don't process the TC's
cd commands, I don't decide whether plugin should prevent TC from setting cursor on this file or that file. I just write functions that open the archive, return its data into TC, etc., but
definitely not cursor navigation routines! TC and TC only is responsible for setting the cursor in different situations.
Sir_SiLvA wrote:your cd command works fine as long as you dont install that game-archive-plugin wich steals the *.bar-extension telling tc: "dont treat .bar-files as files anymore - they are now archives you can look into"
thus tc tries to look into the file wich ofc doesnt work as its only a plain text-file.
I don't blame TC for showing me the error message and for not entering the archive. That's absolutely normal and entirely expected behaviour. My report is about setting cursor only, nothing more.
Sir_SiLvA wrote:Without that Plugin your cd-command works fine.
With the plugin it doesnt because tc expects to set the cursor on the ".." INSIDE the default.bar-archive wich doesnt work ofc
And you really think it's normal? If TC did not enter the archive, why should it set the cursor as if it was in archive? I don't get you. If I try to enter some archive I definitely won't be satisfied with its brokenness. I'll try to open it in an external packer, I'll try to view its contents in Lister, I'll try to repair it one way or another. In other words I'm going to do various things with this archive, so setting the cursor on it looks the most logical behaviour in such situation to me.
BTW if you are still insistent in the plugin's guilt, here is a plugin-less example for you:
1. Create a damaged ZIP file (or download
this one).
2. Start TC with empty INI.
3. Type
cd <path-to-archive>, press Enter.
4. TC shows the message about broken archive.
5. The cursor is located on the
[..] element, not on the archive.