I'm trying to save a bitmap using a name specified elsewhere in the program using a variable. I've tried a bunch of different ways but maybe I'm missing something here?
"fileName" is a const char* in the (relevant) code below:
Maybe I just need more sleep...
Do you get some error? Does the fileName have an extension and if so what is it?
Yeah, it just returns false... the filename comes from the following:
fileName = al_cstr(entries[i].value);
Where entries[i].value is an ALLEGRO_USTR
The filename example value is "test.png"
WAIT!
I see it now... it was "TEST.PNG" and I suppose the function only can determine file type with a lowercase name... odd!
Thanks for letting me think out loud man... appreciate your time.