|
Image doesn't load |
Hrod Ruck
Member #15,433
December 2013
|
I'm trying to load an image from the same folder my main is and I'm always getting null. I've tried moving the image to the folder my .exe is and it did not help. I'm using windows, by the way. Code excerpt: ALLEGRO_PATH *path; |
l j
Member #10,584
January 2009
|
If you're running from an IDE, the IDE may change your working directory. Use al_get_standard_path with al_change_directory to change the working directory.
|
Hrod Ruck
Member #15,433
December 2013
|
Thanks, but how do I print the path I'm using? I don't know which path is ALLEGRO_RESOURCES_PATH, for instance. |
Matthew Leverton
Supreme Loser
January 1999
|
Hrod Ruck
Member #15,433
December 2013
|
Thanks to all for your help. I wasn't setting al_init_image_addon, probably |
|