Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SOIL Result Messages  (Read 23102 times)

0 Members and 1 Guest are viewing this topic.

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
SOIL Result Messages
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SOIL Result Messages
« Reply #1 on: August 26, 2008, 11:04:37 pm »
I thought it was already done, but I'll check it.
Laurent Gomila - SFML developer

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
SOIL Result Messages
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SOIL Result Messages
« Reply #3 on: August 27, 2008, 08:27:07 am »
Okay, done ;)

Now the release builds will show user friendly error messages.
Laurent Gomila - SFML developer

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
SOIL Result Messages
« Reply #4 on: August 27, 2008, 07:20:18 pm »
Thanks a ton, Laurent, and keep up the great work.