As far as determining which OS the game is running under is it better to use preprocessor directives or find some code on google to see if it is mac, windows, or linux. Or should I just let someone else use the GPL to port it?
Printable View
As far as determining which OS the game is running under is it better to use preprocessor directives or find some code on google to see if it is mac, windows, or linux. Or should I just let someone else use the GPL to port it?
Well what kind of game are you making? Is it going to be text based or use some sort of graphics?
It is using allegro which is cross platform just a small RPG to see how well this group will work together. The reason I ask for how to see if it is mac, linux, or windows is in the filenames since I know on windows you would use something like "art\\blah.bmp" and on linux you use "art/blah.bmp" or that is at least according to a friend of mine that is using linux much more than I am.
You use the \\ because it is an escape character so thats why when you open files you use this. Oh and you should use the grabber to put your bitmaps into a .dat file it is quite handy.
lol sorry I had a typo
from what I have heard \\ is for windows and / is for linux I was told \\ will not work on linux and need to know if that is true and if it is I need some way to figure out what OS it is running under
re-read prog-bmans post
He never said if it worked on linux or not and since I will be as bold as to make the assumption that most users on this site use windows I would still like to see it worded as you use \\ in both of those OSes or you use \\ in windows and / in linux
Use / in both OSes; use \\ in Windows.
http://groups.google.com/group/comp....3ac81f37b60ca9
Alright I get it now thanks for all who posted.Quote:
Originally Posted by Dave_Sinkula