How does one substitute data directory information in C?
Here's the code:
Code:
// LOAD IN THE GAME BACKGROUND
temp = IMG_Load("data/images/background.png");
background = SDL_DisplayFormat(temp);
SDL_FreeSurface(temp);
When I do the universal three step install:
Code:
./configure
make
sudo make install
... it installs my executable in /usr/local/bin and the images and other data files in /usr/local/share/Patolli
Patolli is the name of the project and executable.
Please help! What do I need to do to make sure the executable knows where the images are installed?
-- Tony