mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
haiku: No more chdir to executable's directory at startup in SDL3.
Use SDL_GetBaseDir() to find this directory instead. Reference Issue #8403. Fixes #7596.
This commit is contained in:
@@ -798,6 +798,18 @@ The following functions have been removed:
|
||||
|
||||
## SDL_init.h
|
||||
|
||||
On Haiku OS, SDL no longer sets the current working directory to the executable's path during SDL_Init(). If you need this functionality, the fastest solution is to add this code directly after the call to SDL_Init:
|
||||
|
||||
```c
|
||||
{
|
||||
char *path = SDL_GetBasePath();
|
||||
if (path) {
|
||||
chdir(path);
|
||||
SDL_free(path);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The following symbols have been renamed:
|
||||
* SDL_INIT_GAMECONTROLLER => SDL_INIT_GAMEPAD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user