From a6e9185ab666ebf5b69c0859e7dad4186faa6923 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 21 May 2025 11:42:41 +0200 Subject: [PATCH] make this kick you back to titlescreen and stuff --- src/d_netfil.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/d_netfil.c b/src/d_netfil.c index 982bf6c8e..758177cd9 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -1311,13 +1311,22 @@ void CURLPrepareFile(const char* url, int dfilenum) CONS_Printf("Downloading %s from %s\n", curl_realname, url); strcatbf(curl_curfile->filename, downloaddir, "/"); - curl_curfile->file = fopen(curl_curfile->filename, "wb"); + curl_curfile->file = NULL; if (!curl_curfile->file) { - CONS_Alert(CONS_ERROR, "Download of %s failed! Check if you have write access to your download folder!\n", curl_curfile->filename); - filedownload.http_running = false; - filedownload.http_failed = true; + M_StartMessage("Download of %s failed! Check if you have write access to your download folder!\n", curl_curfile->filename, MM_NOTHING); + CURLAbortFile(); + D_QuitNetGame(); + CL_Reset(); + D_StartTitle(); + M_StartMessage(M_GetText( + "An error occured when trying to\n" + "download missing addons.\n" + "See the console or log file\n" + "for additional details.\n\n" + "Press ESC\n" + ), NULL, MM_NOTHING); return; }