Hi Everyone:
I have been working on a game, eridanus, and I have a slight problem. I
am trying to mount the primary level, stored in:
data/levels/world.zip
Since eridanus.exe is in bin/, I mount it using the following:
vfs->Mount("/levels/", "..$/data$/levels$/world.zip");
However, when I do this, it can't find any files in the world.zip file.
If, however, I use the following:
vfs->Mount("/levels?", "C:$/Source$/eridanus$/data$/levels$/world.zip");
it works fine. Now, the problem is that I can't use absolute paths,
because another member of my team uses linux. Ideally, this would be
solved in the end with an installation path. However, when we are
working on the source, it hasn't been installed, added to the registry,
etc... yet. I tried to troubleshoot this by seeing where the initial
path is by default, and I used this code:
csRef<iDataBuffer> db = vfs->Expand("."); // expands to "/"
csRef<iDataBuffer> db2 = vfs->GetRealPath(db->GetData());
But db2 is invalid, telling me that the root virtual directory isn't
mounted as a real directory. How should I overcome this problem? I'd
like to be able to mount a common eridanus directory, and give relative
paths from there. Any idea how I could initially set this up so I don't
have to use absolute paths at all?
Thanks,
~Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]