From 0f5d6822ec551ae9cc2b0e47f3a8509221154ba8 Mon Sep 17 00:00:00 2001 From: Medik Date: Wed, 2 Oct 2024 14:42:39 +0100 Subject: [PATCH] Write name of missing DLL --- M2TWEOP Code/M2TWEOP GUI/helpers.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/M2TWEOP Code/M2TWEOP GUI/helpers.cpp b/M2TWEOP Code/M2TWEOP GUI/helpers.cpp index e197ac14..41b35cbe 100644 --- a/M2TWEOP Code/M2TWEOP GUI/helpers.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/helpers.cpp @@ -369,7 +369,10 @@ bool helpers::compareFiles(wstring& oneFile, wstring& nextFile) } if (in2.is_open() == false) { - MessageBoxA(NULL, "Cannot run M2TWEOP, missing dll. Reinstall M2TWEOP.", "ERROR", MB_OK); + // Use nextFile to specify the missing DLL name in the error message + string errorMessage = "Cannot run M2TWEOP. Missing " + string(nextFile.begin(), nextFile.end()) + ". You should reinstall M2TWEOP or ask for help on the Discord."; + + MessageBoxA(NULL, errorMessage.c_str(), "ERROR", MB_OK); in1.close(); in2.close();