rwops: Fixed some SDL2 symbols that got missed.

This commit is contained in:
Ryan C. Gordon
2024-03-14 21:57:21 -04:00
parent 5f64cc511e
commit 3a344cf877
10 changed files with 18 additions and 18 deletions

View File

@@ -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)