diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2019-12-05 00:11:52 +0100 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2019-12-05 00:11:52 +0100 |
commit | 4f87707cda26f9c6a7a70ad46232eefebc5a4d82 (patch) | |
tree | a2646d72a91bf99fdc1608cba9b44d37f562acc1 | |
parent | 959c37ead74968ef3bf8b66f852307f6e9fb10e3 (diff) |
If all else fails, look for data files (romlist.bin) in the current working direcoty.
-rw-r--r-- | src/libui_sdl/Platform.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp index 8942927..8b83a01 100644 --- a/src/libui_sdl/Platform.cpp +++ b/src/libui_sdl/Platform.cpp @@ -186,6 +186,9 @@ FILE* OpenDataFile(const char* path) } free(fullpath); } + + FILE* f = fopen(path, "rb"); + if (f) return f; return NULL; } |