From 28ec3ac3b55e7d23de3d4dc7c8d4d1056ef6e85a Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 30 Oct 2017 16:48:34 -0400 Subject: [PATCH] temporary fix for startup hang on Windows --- libretro-common/streams/file_stream.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libretro-common/streams/file_stream.c b/libretro-common/streams/file_stream.c index 0e49b51616..cd4ee5565b 100644 --- a/libretro-common/streams/file_stream.c +++ b/libretro-common/streams/file_stream.c @@ -474,6 +474,14 @@ error: int filestream_eof(RFILE *stream) { + return feof(stream->fp); + + /* TODO: FIXME: I can't figure out why this breaks on Windows. + The while loop in config_file_new_internal just never exits. + The current position seems to jump backwards a few lines, + but it doesn't start until somewhere in the middle of the file. + */ + /* size_t current_position = filestream_tell(stream); size_t end_position; @@ -485,6 +493,7 @@ int filestream_eof(RFILE *stream) if (current_position >= end_position) return 1; return 0; + */ } ssize_t filestream_tell(RFILE *stream)