From 4f87707cda26f9c6a7a70ad46232eefebc5a4d82 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Thu, 5 Dec 2019 00:11:52 +0100 Subject: [PATCH] If all else fails, look for data files (romlist.bin) in the current working direcoty. --- src/libui_sdl/Platform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp index 89429270..8b83a014 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; }