Android: Allow SDL_IOFromFile to open content:// URI. (#9696)

This commit is contained in:
Miku AuahDark
2024-05-07 00:05:49 +08:00
committed by GitHub
parent 61c99c0da7
commit 33ae7e38d6
6 changed files with 99 additions and 3 deletions

View File

@@ -175,8 +175,9 @@ typedef struct SDL_IOStream SDL_IOStream;
* This function supports Unicode filenames, but they must be encoded in UTF-8
* format, regardless of the underlying operating system.
*
* As a fallback, SDL_IOFromFile() will transparently open a matching filename
* in an Android app's `assets`.
* In Android, SDL_IOFromFile() can be used to open content:// URIs. As a
* fallback, SDL_IOFromFile() will transparently open a matching filename
* in the app's `assets`.
*
* Closing the SDL_IOStream will close SDL's internal file handle.
*