SFML community forums

General => Feature requests => Topic started by: Wizzard on August 26, 2008, 10:01:14 pm

Title: SOIL Result Messages
Post by: Wizzard on August 26, 2008, 10:01:14 pm
I want to request that by default the release version of the graphics package library be compiled with STBI_FAILURE_USERMSG defined.
This will force stb_image to, instead of giving specific errors, like...
Code: [Select]
can't fopen

... give more user friendly errors, like...
Code: [Select]
Unable to open file

This would be ideal for the release version of the graphics package.


EDIT: If the above request is done, could you also change the errors in ImageLoader.cpp to contain a capital letter after 'Reason : '?
Such that...
Code: [Select]
Reason : this image format is not supported

... is changed to...
Code: [Select]
Reason : This image format is not supported

Of course, this is a matter of ill-importance compared to the initial request and definitely shouldn't be done if it causes an inconsistency in the error messages for other parts of the APIs.
Title: SOIL Result Messages
Post by: Laurent on August 26, 2008, 11:04:37 pm
I thought it was already done, but I'll check it.
Title: SOIL Result Messages
Post by: Wizzard on August 26, 2008, 11:57:51 pm
Maybe it's already in the SVN, I didn't check. :oops:


EDIT: It's not in the Code::Blocks project or in the obvious places of the source files.

It still could be there somewhere, but I'm too busy to set it up to compile at the moment.
Title: SOIL Result Messages
Post by: Laurent on August 27, 2008, 08:27:07 am
Okay, done ;)

Now the release builds will show user friendly error messages.
Title: SOIL Result Messages
Post by: Wizzard on August 27, 2008, 07:20:18 pm
Thanks a ton, Laurent, and keep up the great work.