Make logs work for the PS2

This commit is contained in:
Francisco Javier Trujillo Mata 2018-12-19 20:30:17 +01:00
parent 282e688ee6
commit 5b7a71abd3

View File

@ -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)