Renamed SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER to SDL_PROP_IOSTREAM_STDIO_FILE_POINTER
parent
d3a785e521
commit
24ec1c09b9
|
@ -169,7 +169,7 @@ typedef struct SDL_IOStream SDL_IOStream;
|
||||||
* to a win32 `HANDLE`, that this SDL_IOStream is using to access the
|
* to a win32 `HANDLE`, that this SDL_IOStream is using to access the
|
||||||
* filesystem. If the program isn't running on Windows, or SDL used some
|
* filesystem. If the program isn't running on Windows, or SDL used some
|
||||||
* other method to access the filesystem, this property will not be set.
|
* other method to access the filesystem, this property will not be set.
|
||||||
* - `SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER`: a pointer, that can be cast to
|
* - `SDL_PROP_IOSTREAM_STDIO_FILE_POINTER`: a pointer, that can be cast to
|
||||||
* a stdio `FILE *`, that this SDL_IOStream is using to access the
|
* a stdio `FILE *`, that this SDL_IOStream is using to access the
|
||||||
* filesystem. If SDL used some other method to access the filesystem, this
|
* filesystem. If SDL used some other method to access the filesystem, this
|
||||||
* property will not be set. PLEASE NOTE that if SDL is using a different C
|
* property will not be set. PLEASE NOTE that if SDL is using a different C
|
||||||
|
@ -198,7 +198,7 @@ typedef struct SDL_IOStream SDL_IOStream;
|
||||||
extern DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromFile(const char *file, const char *mode);
|
extern DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromFile(const char *file, const char *mode);
|
||||||
|
|
||||||
#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle"
|
#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle"
|
||||||
#define SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER "SDL.iostream.stdio.handle"
|
#define SDL_PROP_IOSTREAM_STDIO_FILE_POINTER "SDL.iostream.stdio.file"
|
||||||
#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset"
|
#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -430,7 +430,7 @@ static SDL_IOStream *SDL_IOFromFP(FILE *fp, SDL_bool autoclose)
|
||||||
} else {
|
} else {
|
||||||
const SDL_PropertiesID props = SDL_GetIOProperties(iostr);
|
const SDL_PropertiesID props = SDL_GetIOProperties(iostr);
|
||||||
if (props) {
|
if (props) {
|
||||||
SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER, fp);
|
SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_FILE_POINTER, fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue