From a787673baf6e9615ff4145aa668fd594f5e380ff Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Tue, 24 Dec 2024 12:57:20 -0800 Subject: [PATCH] show error box for windows --- dMasterServer/MasterServer.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dMasterServer/MasterServer.cpp b/dMasterServer/MasterServer.cpp index 2c706400..89ecef05 100644 --- a/dMasterServer/MasterServer.cpp +++ b/dMasterServer/MasterServer.cpp @@ -88,7 +88,16 @@ int main(int argc, char** argv) { for (const auto folder : folders) { if (!std::filesystem::exists(BinaryPathFinder::GetBinaryDir() / folder)) { - LOG("The (%s) folder was not copied to the binary directory. Please copy the (%s) folder from your download to the binary directory or re-run cmake.", folder, folder); + std::string msg = "The (" + + std::string(folder) + + ") folder was not copied to the binary directory. Please copy the (" + + std::string(folder) + + ") folder from your download to the binary directory or re-run cmake."; + LOG("%s", msg.c_str()); +// toss an error box up for windows users running the download +#ifdef DARKFLAME_PLATFORM_WIN32 + MessageBoxA(nullptr, msg.c_str(), "Missing Folder", MB_OK | MB_ICONERROR); +#endif return EXIT_FAILURE; } }