mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
NOISSUE shut down logger when MultiMC exits
Prevents crash bugs...
This commit is contained in:
parent
7cff5ba2e1
commit
07589b5114
2 changed files with 7 additions and 0 deletions
|
|
@ -318,6 +318,7 @@ MultiMC::~MultiMC()
|
|||
WriteConsole(out, endline, strlen(endline), &written, NULL);
|
||||
}
|
||||
#endif
|
||||
shutdownLogger();
|
||||
}
|
||||
|
||||
void MultiMC::messageReceived(const QString& message)
|
||||
|
|
@ -457,6 +458,11 @@ void MultiMC::initLogger()
|
|||
logFile->open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate);
|
||||
}
|
||||
|
||||
void MultiMC::shutdownLogger()
|
||||
{
|
||||
qInstallMessageHandler(nullptr);
|
||||
}
|
||||
|
||||
void MultiMC::initInstances()
|
||||
{
|
||||
auto InstDirSetting = m_settings->getSetting("InstanceDir");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue