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

Reply via email to