I'm trying to convert some images for my game's assets but for some reason al_save_bitmap is not working. I have called al_init_image_addon during startup. Below is the offending code:
Does the /gfx/Units/Small/New/ exist? Also, try making a file using al_fopen(fileName.c_str(), "w") and see if that returns a non-NULL.
Both give an error. And yes, gfx/Units/Small/New exists. I've even tried to run as administrator thinking write permissions, but still can't.
Edit:
On a side note, I am using the physfs interface as well...even though I don't think that should hurt in this case. Maybe it's making things read only...
Edit 2:
It was PhysFS setting the directory read only....