From 1d40c06c198ae04dcac574a9b540052687222827 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 24 Apr 2022 14:17:00 +0200 Subject: [PATCH] Log: Add spacer between error and fmt if necessary --- rpcs3/Emu/System.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index b71b11b01f..5b87114928 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -2003,6 +2003,11 @@ s32 error_code::error_report(s32 result, const char* fmt, const fmt_type_info* s // Format log message (use preallocated buffer) g_tls_error_str.clear(); fmt::append(g_tls_error_str, "'%s' failed with 0x%08x", func, result); + + // Add spacer between error and fmt if necessary + if (fmt[0] != ' ') + g_tls_error_str += " : "; + fmt::raw_append(g_tls_error_str, fmt, sup, args); // Update stats and check log threshold