Or you could use the DirectorySeparator constant.
e.g.
Sure, the constants identifier is a bit long, but it makes paths portable accross any platform.Code:LoadImage('resources'+DirectorySeparator+'visual'+DirectorySeparator+'Ring.png');
Last edited by de_jean_7777; 05-10-2010 at 07:09 PM. Reason: Error in code.
Existence is pain
Now that you mention it, I believe that dazappa made a very valid point that would work across OSes by default... Time for an updated version 1.0 perhaps?
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
this can sort of be compensated by just making your own local variable...
I'm sure you can't assign values from variables inside a const statement. And if this form of assignment doesn't work, which I think I remember it can, only if it's a global variable not a local variable inside a function of procedure.Code:var dslash : String = DirectorySeparator;
Bookmarks