Help with data directories
I know this probably has nothing to do with the actual code itself, but how do I find out where the directory the user compiled the program in is? I am using kdevelop as my IDE and I am running Mandriva 10.1. Supertux did a nice job of this but I can't figure how they did it.
I probably need to be a little more explanatory.
OK I can see what your saying there but what if someone else on a nother machine is compiling this program. How then do I tell the program to find out where they compiled the program at? If you are wondering what I am talking about visit supertux.berlios.de and go the downloads section and download the source code release version 1.1.3 and compile it then when you execute the game it will say datadir=/where/you/compiled/supertux/at/data. This is what I am trying to achieve.