Re: [Alephmodular-devel] CFileDesc landed
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-02-12 06:10:36
|
On Wednesday, February 12, 2003, at 12:36 AM, Woody Zenfell, III wrote: >> Probably because a 'from-scratch' file browser never occurred to me. >> Possibly assuming that even SDL had its methods. > > Nope sorry, SDL doesn't try to abstract filesystem navigation. Nuisance, that. >> Essentially I was implementing navigate_up, was wondering how to deal >> with the case of a volume root. (I'm not at all clear how the >> CFileDesc stuff would handle volume switching) and then I remembered >> that the code sample I was using had things in front of it along the >> lines of "I promise I won't use this stuff for evil" or some such. > > navigate_up() from a volume root would probably return an instance > (oops, no wait, we can't do that - hmm maybe internally there's an > indirection, a little along the lines of a State or Strategy pattern?) > of a related (but different) class that's some sort of > pseudo-master-root thing whose children are the roots of the various > volumes available. (?) Navigate_up certainly reaches a messy spot at that point. Then again it might be easier to say 'No you can't navigate past the root of one volume, buuuuuut, you can do this other command to find get a base root object for each volume' Iiiick messy yuck. :/ >> I'm waffling between trying to look into the details of screen >> management, and being tugged by some file bastions that need some >> kind of stamping. While I haven't committed to a resource handling >> API yet, there seems little reason for shapes and sounds to generally >> be roaming completely free of the portable_files.h API. > > Does resource-handling stuff include support for a stronger notion of > "scenario"? > Actually, no. My current view of resource-handling stuff is that it should be treated as legacy code. We need it for direct reading of M1/M2/Minf files and scenarios. But I would prefer a specific format specified for such things under non-mac platforms and which could be the basis for the AM specific format going forward. -Jeremy Parsons |