mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 00:18:28 +00:00
rwops: Fixed some SDL2 symbols that got missed.
This commit is contained in:
@@ -1789,7 +1789,7 @@ static GamepadMapping_t *SDL_PrivateGetGamepadMapping(SDL_JoystickID instance_id
|
||||
/*
|
||||
* Add or update an entry into the Mappings Database
|
||||
*/
|
||||
int SDL_AddGamepadMappingsFromRW(SDL_IOStream *src, SDL_bool freesrc)
|
||||
int SDL_AddGamepadMappingsFromIO(SDL_IOStream *src, SDL_bool freesrc)
|
||||
{
|
||||
const char *platform = SDL_GetPlatform();
|
||||
int gamepads = 0;
|
||||
@@ -1797,7 +1797,7 @@ int SDL_AddGamepadMappingsFromRW(SDL_IOStream *src, SDL_bool freesrc)
|
||||
size_t db_size;
|
||||
size_t platform_len;
|
||||
|
||||
buf = (char *)SDL_LoadFile_RW(src, &db_size, freesrc);
|
||||
buf = (char *)SDL_LoadFile_IO(src, &db_size, freesrc);
|
||||
if (!buf) {
|
||||
return SDL_SetError("Could not allocate space to read DB into memory");
|
||||
}
|
||||
@@ -1845,7 +1845,7 @@ int SDL_AddGamepadMappingsFromRW(SDL_IOStream *src, SDL_bool freesrc)
|
||||
|
||||
int SDL_AddGamepadMappingsFromFile(const char *file)
|
||||
{
|
||||
return SDL_AddGamepadMappingsFromRW(SDL_IOFromFile(file, "rb"), 1);
|
||||
return SDL_AddGamepadMappingsFromIO(SDL_IOFromFile(file, "rb"), 1);
|
||||
}
|
||||
|
||||
int SDL_ReloadGamepadMappings(void)
|
||||
|
Reference in New Issue
Block a user