From 7112bfb77f74393a8b0d30d6e6b06339ffbe055d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 21 Jan 2024 12:49:44 -0600 Subject: [PATCH] Make copy to clipboard in Windows error dialog include error message There is a copy to clipboard option but the error itself wasn't printed to the console so it wasn't copied to the clipboard. Unix-like platforms print it to the console so it's written in crashlog.txt. --- code/sys/sys_win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c index 7d806a1674..f1749ca218 100644 --- a/code/sys/sys_win32.c +++ b/code/sys/sys_win32.c @@ -727,6 +727,8 @@ Display an error message */ void Sys_ErrorDialog( const char *error ) { + Sys_Print( va( "%s\n", error ) ); + if( Sys_Dialog( DT_YES_NO, va( "%s. Copy console log to clipboard?", error ), "Error" ) == DR_YES ) {