iOS: if the file doesn't exist in the pref path, use the current directory

Fixes https://github.com/libsdl-org/SDL/issues/14743
This commit is contained in:
Sam Lantinga
2026-01-02 08:18:05 -08:00
parent 4a29b6a651
commit a0307589bd
2 changed files with 8 additions and 0 deletions

View File

@@ -985,6 +985,10 @@ SDL_IOStream *SDL_IOFromFile(const char *file, const char *mode)
fp = fopen(path, mode);
SDL_free(path);
if (!fp) {
fp = fopen(file, mode);
}
}
if (!fp) {