From 5b7a71abd370cf1e9317945ead956da0d4886d91 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Wed, 19 Dec 2018 20:30:17 +0100 Subject: [PATCH] Make logs work for the PS2 --- verbosity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/verbosity.c b/verbosity.c index 42a79f4977..9db900e8e4 100644 --- a/verbosity.c +++ b/verbosity.c @@ -118,9 +118,11 @@ void retro_main_log_file_init(const char *path) log_file_fp = (FILE*)fopen_utf8(path, "wb"); log_file_initialized = true; +#if !defined(PS2) /* TODO: this is only useful for a few platforms, find which and add ifdef */ log_file_buf = calloc(1, 0x4000); setvbuf(log_file_fp, (char*)log_file_buf, _IOFBF, 0x4000); +#endif } void retro_main_log_file_deinit(void)