[Scummvm-devel] Archive subclass inconsistencies

Max Horn max at quendi.de
Mon Aug 16 23:49:15 CEST 2010


Am 16.08.2010 um 23:08 schrieb Eugene Sandulenko:

[...]

> 
>> Maybe you also want to tell why you want to list directories?
> I need it for the following pseudocode:
> 
>  archive->listMatchedMembers(list, "rooms/*");
>  foreach it in (list) {
>    executeScript(it->getName() + "/default.lua");
>  }

This is something Common::Archive never was intended for.

> It is part of BS2.5 engine and in fact is in game scripts, and I have
> no control over it. So if Archive will be decided to not handle
> directories at all, I will have to write my own local subclass.

No, you do not have to write a custom class: You can simply use an FSNode for the rooms directory, to iterate over all is subdirectories.

Bye,
Max



More information about the Scummvm-devel mailing list