rwops: Renamed SDL_RWops to SDL_IOStream, and other related symbols.
This commit is contained in:
parent
fe33b2a81b
commit
fc7afa9cbf
36 changed files with 1194 additions and 1132 deletions
|
@ -29,7 +29,7 @@ GetNearbyFilename(const char *file)
|
|||
base = SDL_GetBasePath();
|
||||
|
||||
if (base) {
|
||||
SDL_RWops *rw;
|
||||
SDL_IOStream *rw;
|
||||
size_t len = SDL_strlen(base) + SDL_strlen(file) + 1;
|
||||
|
||||
path = SDL_malloc(len);
|
||||
|
@ -42,9 +42,9 @@ GetNearbyFilename(const char *file)
|
|||
(void)SDL_snprintf(path, len, "%s%s", base, file);
|
||||
SDL_free(base);
|
||||
|
||||
rw = SDL_RWFromFile(path, "rb");
|
||||
rw = SDL_IOFromFile(path, "rb");
|
||||
if (rw) {
|
||||
SDL_CloseRW(rw);
|
||||
SDL_CloseIO(rw);
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue