mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
added option --debug-output to redirect client output to file
This commit is contained in:
parent
40d2b57de9
commit
fd5be3d525
3 changed files with 7 additions and 3 deletions
|
|
@ -72,8 +72,10 @@ void installNewTranslator()
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// qInstallMsgHandler(myMessageOutput);
|
||||
QApplication app(argc, argv);
|
||||
|
||||
if (app.arguments().contains("--debug-output"))
|
||||
qInstallMsgHandler(myMessageOutput);
|
||||
#ifdef Q_OS_MAC
|
||||
QDir baseDir(app.applicationDirPath());
|
||||
baseDir.cdUp();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue