Skip to content

Commit

Permalink
Write name of missing DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieEldridge committed Oct 2, 2024
1 parent 53fe960 commit 0f5d682
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion M2TWEOP Code/M2TWEOP GUI/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 0f5d682

Please sign in to comment.