1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:23:52 +00:00

Fix messagebox on crash showing wrong path

This commit is contained in:
scrawl 2014-06-28 15:21:04 +02:00
parent 3b2358888b
commit 65e36793fc

View file

@ -381,10 +381,7 @@ static void crash_handler(const char *logfile)
if(logfile) if(logfile)
{ {
char cwd[MAXPATHLEN]; std::string message = "OpenMW has encountered a fatal error.\nCrash log saved to '" + std::string(logfile) + "'.\n Please report this to https://bugs.openmw.org !";
getcwd(cwd, MAXPATHLEN);
std::string message = "OpenMW has encountered a fatal error.\nCrash log saved to '" + std::string(cwd) + "/" + std::string(logfile) + "'.\n Please report this to https://bugs.openmw.org !";
SDL_ShowSimpleMessageBox(0, "Fatal Error", message.c_str(), NULL); SDL_ShowSimpleMessageBox(0, "Fatal Error", message.c_str(), NULL);
} }
exit(0); exit(0);