[TuxKart-devel] Location sysem
Status: Alpha
Brought to you by:
sjbaker
From: Ricardo C. <ri...@ae...> - 2004-06-27 20:48:31
|
Hey there, I noticed that TuxKart doesn't make a very smart checking where it is placed. Just looks at local dir, up dir and system chunk (/usr). Smarter location checking would be: - asking proc for the binary directory; - look at the way the binary was executed - won't be able to get the location for symlinks. An implementation of the last one is here: http:// By the way, using chdir() is kinda of ugly. What about having a global string? Best fix, however, would be to make Linux file manager to execute binaries from their own dir. Cheers, Ricardo (blacksheep from Linux Game Tome) -- I've spent almost all of my life with highly intelligent men. They're not like other men. Their spirit is great and stimulating. They hate strife; indeed they reject it. Their inventive gifts are boundless. They demand devotion and obedience. And a sense of humor. I happily gave all of this. I was lucky to be chosen and clever enough to understand them. -- Marlene Dietrich, on her friendship with Ernest Hemingway |