Crystal Space
Welcome, Guest. Please login or register.
October 02, 2014, 02:22:44 am

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8569 Members
Latest Member: Embingos
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  question about mounting directories to the VFS
« previous next »
Pages: [1] Print
Author Topic: question about mounting directories to the VFS  (Read 1315 times)
ballrog
Newbie
*
Posts: 10


View Profile Email
« on: February 04, 2006, 09:53:22 pm »

Hi
Have been going through the simple 3 tutorial, and as a twist tried to put the resource files(the world files etc.) to a location outside of CS firectory. Since i wanted to mount the desired directory which is located at (im using Win XP) C:\Crystalspace\Crystalspace apps\Resources, without changing the vfs.cfg file, i had to make an environment variable to define C:. I named the environment variable ROT.

the code i used to mount was:

csRef<iVFS> VFS (csQueryRegistry<iVFS> (object_reg));

VFS->Mount("resources", "$(ROT)$/Crystalspace$/Crystalspace apps$/Resources$/");



The question i have is: if there is another way to define a physical path in Win xp and map it to VFS cia code without having to create an environment varaible?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.181 seconds with 16 queries.