Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
This commit is contained in:
parent
92d700f199
commit
27d4f09929
26 changed files with 68 additions and 136 deletions
|
@ -171,8 +171,7 @@ SDL_SYS_SetupThread(const char *name)
|
|||
THREADNAME_INFO inf;
|
||||
|
||||
/* C# and friends will try to catch this Exception, let's avoid it. */
|
||||
const char *hint = SDL_GetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING);
|
||||
if (hint && *hint == '1') {
|
||||
if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, SDL_FALSE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue