Well the documentation means that the current VFS dir will be set to
that path during loading. Could perhaps be a little bit more clear
about that fact however.

Greetings,

On Mon, Nov 3, 2008 at 1:16 PM, Samir Kanaan/LSI <[EMAIL PROTECTED]> wrote:
> Hi all,
> please correct me if I am wrong, but I was using celPcZoneManager::Load
> function to load a 'level.xml' file
> and it continuosly gave errors on not finding 'world' file.
> According to ZoneManager documentation,
>
> Parameters:
> path  is a VFS path. Current VFS dir will be set to that path. Can be 0 if
> no path is desired.
> file  is a VFS file.
> However, after many tries, I have gone back to the sources and I find that
> 'Load' method does change
> the current VFS dir, loads the XML file but then *goes back* to the previous
> directory:
>
> bool celPcZoneManager::Load (const char* path, const char* file)
> {
>   ...
>   if (path)
>   {
>     vfs->PushDir ();
>     vfs->ChDir (path);
>   }
>   csRef<iDataBuffer> buf = vfs->ReadFile (file);
>   if (path)
>     vfs->PopDir ();
>   ...
>
> I have the impression that there is a mismatch here, but as I have
> previously said,
> please correct me if I am wrong.
>
> Regards,
> Samir Kanaan
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Cel-main mailing list
> Cel-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cel-main
>
>



-- 
Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at
https://sourceforge.net/donate/index.php?group_id=649
Visit my town at http://waldir.myminicity.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to