So does Prometheus support Mac too?
Of course. There are no windows specific things to the best of my knowledge. The only thing is that you will have to change the paths from resources\ to resources/ as there is a / in linux and mac unlike a \ on windows. It should compile on fpc 2.2.4 with -MDelphi switch, on just about any platform with sdl units available. So to answer your question, unless you have a 1984 McIntosch Apple I and have OS X I see no problems.
Correct me if I'm wrong here Stoney, I only used a mac twice in my life...
cheers,
code_glitch
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
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;
- Jeremy
http://www.eonclash.com/
Bookmarks