current working directory problem
current working directory problem
- Subject: current working directory problem
- From: Kaveh Kardan <email@hidden>
- Date: Thu, 30 Sep 2004 12:11:09 -1000
I'm coming across an odd problem having to do with relative pathnames
having different behaviors on different machines.
We are trying to load jpeg files using relative pathnames, and on
different machines, we have to specify different pathnames for the same
file. Here are the two different calls we need to make:
One machine A:
MAKE_TEXTURE_SHADER(floorShader,
"../../projects/RPG/data/tex/tile.jpg");
On machine B:
MAKE_TEXTURE_SHADER(floorShader, "../projects/RPG/data/tex/tile.jpg");
The problem is that Xcode thinks that the current working directory is
different on each machine. One machine A, it is inside the RPG.app
folder, while on machine B it is at the level of RPG.app. We can see
the difference by doing a call to:
system("ls ..");
before trying to load the image.
Kaveh
Kaveh Kardan Chief Technologist
email@hidden Academy for Creative Media
(808)956-5302 University of Hawaii
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden