EventThread: Properly allocate SDL user event codes
This commit is contained in:
parent
0a336ea315
commit
5f16eef273
3 changed files with 84 additions and 54 deletions
src
|
@ -234,6 +234,13 @@ int main(int, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!EventThread::allocUserEvents())
|
||||
{
|
||||
Debug() << "Error allocating SDL user events";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* set working directory */
|
||||
char *dataDir = SDL_GetBasePath();
|
||||
if (dataDir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue